Skip to content

Commit 0056ce6

Browse files
committed
Add entry for $.parseHTML
1 parent 14609d3 commit 0056ce6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

entries/jQuery.parseHTML.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
<example>
2121
<desc>Create an array of Dom nodes using an HTML string and insert it into a div.</desc>
2222
<html><![CDATA[
23-
<div id="log"></div>
23+
<div id="log">
24+
<h3>Content:</h3>
25+
</div>
2426
]]></html>
2527
<code><![CDATA[
2628
var $log = $( "#log" ),
@@ -36,9 +38,8 @@ $.each( html, function( i, el ) {
3638
nodeNames[i] = "<li>" + el.nodeName + "</li>";
3739
});
3840
39-
$log.append( "<h3>Node Names:</h3>" );
40-
4141
// Insert the node names
42+
$log.append( "<h3>Node Names:</h3>" );
4243
$( "<ol></ol>" )
4344
.append( nodeNames.join( "" ) )
4445
.appendTo( $log );

0 commit comments

Comments
 (0)