Skip to content

Commit 0f04982

Browse files
gnarfkswedberg
authored andcommitted
Remove bad advice
1 parent fd728e9 commit 0f04982

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

entries/jQuery.xml

-14
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,6 @@ $( "<div></div>", {
187187
}).appendTo( "body" );
188188
</code></pre>
189189
<p>The name <code>"class"</code> must be quoted in the map since it is a JavaScript reserved word, and <code>"className"</code> cannot be used since it is not the correct attribute name. </p>
190-
<p><strong>Note:</strong> Internet Explorer will not allow you to create an <code>input</code> or <code>button</code> element and change its type; you must specify the type using <code>"&lt;input type="checkbox" /&gt;"</code>, for example. A demonstration of this can be seen below:</p>
191-
<p>Unsupported in IE:</p>
192-
<pre><code>
193-
$( "&lt;input /&gt;", {
194-
type: "text",
195-
name: "test"
196-
}).appendTo( "body" );
197-
</code></pre>
198-
<p>Supported workaround:</p>
199-
<pre><code>
200-
$( "&lt;input type="text" /&gt;" ).attr({
201-
name: "test"
202-
}).appendTo( "body" );
203-
</code></pre>
204190
</longdesc>
205191
<example>
206192
<desc>Create a div element (and all of its contents) dynamically and append it to the body element. Internally, an element is created and its innerHTML property set to the given markup.</desc>

0 commit comments

Comments
 (0)