Skip to content

Commit 72d68cc

Browse files
authored
Remove incorrect IE quirk in HTMLElement.style docs (mdn#6171)
Tested on IE all the way back to IE 6, and setting to null works.
1 parent 8b3f112 commit 72d68cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/en-us/web/api/htmlelement/style/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2 id="Setting_styles">Setting styles</h2>
4040

4141
<p>Therefore, to add specific styles to an element without altering other style values, it is generally preferable to set individual properties on the {{domxref("CSSStyleDeclaration")}} object. For example, <code>element.style.backgroundColor = "red"</code>.</p>
4242

43-
<p>A style declaration is reset by setting it to <code>null</code> or an empty string, e.g., <code>elt.style.color = null</code>. Internet Explorer requires setting it to an empty string, and does not do anything when setting it to <code>null</code>.</p>
43+
<p>A style declaration is reset by setting it to <code>null</code> or an empty string, e.g., <code>elt.style.color = null</code>.</p>
4444

4545
<h3 id="Getting_style_information">Getting style information</h3>
4646

0 commit comments

Comments
 (0)