Commit 3dd1fd9c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Handle removeAttribute("filter") calls on detached style objects.

parent 3886fa60
......@@ -3158,6 +3158,8 @@ static HRESULT WINAPI HTMLStyle_removeAttribute(IHTMLStyle *iface, BSTR strAttri
/* filter property is a special case */
if(style_entry->compat_dispid == DISPID_IHTMLSTYLE_FILTER) {
if(!This->elem)
return E_UNEXPECTED;
*pfSuccess = variant_bool(This->elem->filter && *This->elem->filter);
heap_free(This->elem->filter);
This->elem->filter = NULL;
......
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