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
|
@ -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 New Issue