Commit 4e9324c4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Always return false in IHTMLDOMAttribute2::get_expando for detached attributes.

parent 50c5a2ce
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment