forked from Mirrors/wine-wine
mshtml: Handle removeAttribute("filter") calls on detached style objects.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>stable
parent
3886fa60e0
commit
3dd1fd9c8b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue