mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
mshtml: Always return false in IHTMLDOMAttribute2::get_expando for detached attributes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
50c5a2ce2e
commit
4e9324c43e
2 changed files with 2 additions and 1 deletions
|
@ -335,7 +335,7 @@ static HRESULT WINAPI HTMLDOMAttribute2_get_expando(IHTMLDOMAttribute2 *iface, V
|
|||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
*p = get_dispid_type(This->dispid) == DISPEXPROP_BUILTIN ? VARIANT_FALSE : VARIANT_TRUE;
|
||||
*p = !This->elem || get_dispid_type(This->dispid) == DISPEXPROP_BUILTIN ? VARIANT_FALSE : VARIANT_TRUE;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -8919,6 +8919,7 @@ static void test_create_elems(IHTMLDocument2 *doc)
|
|||
test_no_iface((IUnknown*)attr, &IID_IHTMLDOMNode);
|
||||
|
||||
test_attr_node_name(attr, "Test");
|
||||
test_attr_expando(attr, VARIANT_FALSE);
|
||||
|
||||
IHTMLDOMAttribute_Release(attr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue