mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 06:06:50 +00:00
mshtml: Fix style attribute removal in IE8 mode.
put_cssText implicitly sets the attribute, which must be removed since IE8 specially checks it. Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6f37e50a1d
commit
f807f74194
|
@ -1277,6 +1277,9 @@ static HRESULT WINAPI HTMLElement_removeAttribute(IHTMLElement *iface, BSTR strA
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
|
if(compat_mode >= COMPAT_MODE_IE8)
|
||||||
|
element_remove_attribute(This, strAttributeName);
|
||||||
|
|
||||||
*pfSuccess = VARIANT_TRUE;
|
*pfSuccess = VARIANT_TRUE;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1257,7 +1257,6 @@ sync_test("elem_attr", function() {
|
||||||
r = elem.style;
|
r = elem.style;
|
||||||
ok(r === style, "removed elem.style = " + r);
|
ok(r === style, "removed elem.style = " + r);
|
||||||
r = elem.getAttribute("style");
|
r = elem.getAttribute("style");
|
||||||
todo_wine_if(v === 8).
|
|
||||||
ok(r === (v < 8 ? style : null), "style attr after removal = " + r);
|
ok(r === (v < 8 ? style : null), "style attr after removal = " + r);
|
||||||
elem.setAttribute("style", "opacity: 1.0");
|
elem.setAttribute("style", "opacity: 1.0");
|
||||||
r = elem.getAttribute("style");
|
r = elem.getAttribute("style");
|
||||||
|
|
Loading…
Reference in a new issue