Skip to content

Commit f082f33

Browse files
authored
jQuery(): Add explicit quick-closed tag example for jQuery( html [, ownerDocument ] )
1 parent ed882c0 commit f082f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/jQuery.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ $( myForm.elements ).hide();
184184
<p>Tags that cannot contain elements may be quick-closed or not:</p>
185185
<pre><code>
186186
$( "&lt;img&gt;" );
187-
$( "&lt;input&gt;" );
187+
$( "&lt;input /&gt;" );
188188
</code></pre>
189189
<p>When passing HTML to <code>jQuery()</code>, note that text nodes are not treated as DOM elements. With the exception of a few methods (such as <code>.content()</code>), they are generally ignored or removed. E.g:</p>
190190
<pre><code>

0 commit comments

Comments
 (0)