Skip to content

Commit 7e945c5

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

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
@@ -183,7 +183,7 @@ $( myForm.elements ).hide();
183183
<pre><code>$( "&lt;a href='https://jquery.com'&gt;&lt;/a&gt;" );</code></pre>
184184
<p>Tags that cannot contain elements may be quick-closed or not:</p>
185185
<pre><code>
186-
$( "&lt;img&gt;" );
186+
$( "&lt;img /&gt;" );
187187
$( "&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>

0 commit comments

Comments
 (0)