Skip to content

Commit

Permalink
jQuery(): Add explicit quick-closed tag example for `jQuery( html [,…
Browse files Browse the repository at this point in the history
… ownerDocument ] )`
  • Loading branch information
flinti authored Oct 19, 2024
1 parent ed882c0 commit f082f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entries/jQuery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ $( myForm.elements ).hide();
<p>Tags that cannot contain elements may be quick-closed or not:</p>
<pre><code>
$( "&lt;img&gt;" );
$( "&lt;input&gt;" );
$( "&lt;input /&gt;" );
</code></pre>
<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>
<pre><code>
Expand Down

0 comments on commit f082f33

Please sign in to comment.