Skip to content

Commit 3aa3761

Browse files
dennisbyrneAurelioDeRosa
authored andcommitted
Replaced self closing divs with correct version
Closes gh-929
1 parent b6ec0a6 commit 3aa3761

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: entries/after.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $( "p" ).after(function() {
9696
<p>Similar to other content-adding methods such as <code><a href="/prepend/">.prepend()</a></code> and <code><a href="/before/">.before()</a></code>, <code>.after()</code> also supports passing in multiple arguments as input. Supported input includes DOM elements, jQuery objects, HTML strings, and arrays of DOM elements.</p>
9797
<p>For example, the following will insert two new <code>&lt;div&gt;</code>s and an existing <code>&lt;div&gt;</code> after the first paragraph:</p>
9898
<pre><code>
99-
var $newdiv1 = $( "&lt;div id='object1'/&gt;" ),
99+
var $newdiv1 = $( "&lt;div id='object1'&gt;&lt;/div&gt;" ),
100100
newdiv2 = document.createElement( "div" ),
101101
existingdiv1 = document.getElementById( "foo" );
102102

Diff for: entries/append.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $( ".container" ).append( $( "h2" ) );
8181
<p>Similar to other content-adding methods such as <code><a href="/prepend/">.prepend()</a></code> and <code><a href="/before/">.before()</a></code>, <code>.append()</code> also supports passing in multiple arguments as input. Supported input includes DOM elements, jQuery objects, HTML strings, and arrays of DOM elements.</p>
8282
<p>For example, the following will insert two new <code>&lt;div&gt;</code>s and an existing <code>&lt;div&gt;</code> as the last three child nodes of the body:</p>
8383
<pre><code>
84-
var $newdiv1 = $( "&lt;div id='object1'/&gt;" ),
84+
var $newdiv1 = $( "&lt;div id='object1'&gt;&lt;/div&gt;" ),
8585
newdiv2 = document.createElement( "div" ),
8686
existingdiv1 = document.getElementById( "foo" );
8787

Diff for: entries/before.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ $( ".container" ).before( $( "h2" ) );
9191
<p>Similar to other content-adding methods such as <code><a href="/prepend/">.prepend()</a></code> and <code><a href="/after/">.after()</a></code>, <code>.before()</code> also supports passing in multiple arguments as input. Supported input includes DOM elements, jQuery objects, HTML strings, and arrays of DOM elements.</p>
9292
<p>For example, the following will insert two new <code>&lt;div&gt;</code>s and an existing <code>&lt;div&gt;</code> before the first paragraph:</p>
9393
<pre><code>
94-
var newdiv1 = $( "&lt;div id='object1'/&gt;" ),
94+
var newdiv1 = $( "&lt;div id='object1'&gt;&lt;/div&gt;" ),
9595
newdiv2 = document.createElement( "div" ),
9696
existingdiv1 = document.getElementById( "foo" );
9797

Diff for: entries/prepend.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $( ".container" ).prepend( $( "h2" ) );
8181
<p>Similar to other content-adding methods such as <code><a href="/append/">.append()</a></code> and <code><a href="/before/">.before()</a></code>, <code>.prepend()</code> also supports passing in multiple arguments as input. Supported input includes DOM elements, jQuery objects, HTML strings, and arrays of DOM elements.</p>
8282
<p>For example, the following will insert two new <code>&lt;div&gt;</code>s and an existing <code>&lt;div&gt;</code> as the first three child nodes of the body:</p>
8383
<pre><code>
84-
var $newdiv1 = $( "&lt;div id='object1'/&gt;"),
84+
var $newdiv1 = $( "&lt;div id='object1'&gt;&lt;/div&gt;"),
8585
newdiv2 = document.createElement( "div" ),
8686
existingdiv1 = document.getElementById( "foo" );
8787

0 commit comments

Comments
 (0)