Skip to content

Commit a9c3f49

Browse files
authored
jQuery: Add a self-closed tag back to an example
This adds an actual quick-closed tag in this code example, as it is implied by the text that there can be one: > Tags that cannot contain elements may be quick-closed or not: > ```js > $( "<img>" ); > $( "<input>" ); > ``` to: > Tags that cannot contain elements may be quick-closed or not: > ```js > $( "<img />" ); > $( "<input>" ); > ``` Closes gh-1264
1 parent ed882c0 commit a9c3f49

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)