Skip to content

Commit 69aefdc

Browse files
arthurvrAurelioDeRosa
authored andcommitted
removeAttr: update note on support in IE
Fixes gh-642 Closes gh-652
1 parent f77c959 commit 69aefdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/removeAttr.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<desc>Remove an attribute from each element in the set of matched elements.</desc>
1111
<longdesc>
1212
<p>The <code>.removeAttr()</code> method uses the JavaScript <code>removeAttribute()</code> function, but it has the advantage of being able to be called directly on a jQuery object and it accounts for different attribute naming across browsers.</p>
13-
<p><strong>Note:</strong> Removing an inline <code>onclick</code> event handler using <code>.removeAttr()</code> doesn't achieve the desired effect in Internet Explorer 6, 7, or 8. To avoid potential problems, use <code>.prop()</code> instead:</p>
13+
<p><strong>Note:</strong> Removing an inline <code>onclick</code> event handler using <code>.removeAttr()</code> doesn't achieve the desired effect in Internet Explorer 8, 9 and 11. To avoid potential problems, use <code>.prop()</code> instead:</p>
1414
<pre><code>
1515
$element.prop( "onclick", null );
1616
console.log( "onclick property: ", $element[ 0 ].onclick );

0 commit comments

Comments
 (0)