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:
Jacek Caban 2016-03-01 14:28:52 +01:00 committed by Alexandre Julliard
parent 50c5a2ce2e
commit 4e9324c43e
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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);
}