Permalink
Browse files

Add entry for $.parseHTML

  • Loading branch information...
1 parent 14609d3 commit 0056ce6b3739e18d1b15767049dc57f4a585bbbb @kswedberg kswedberg committed Jan 13, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 entries/jQuery.parseHTML.xml
View
7 entries/jQuery.parseHTML.xml
@@ -20,7 +20,9 @@
<example>
<desc>Create an array of Dom nodes using an HTML string and insert it into a div.</desc>
<html><![CDATA[
-<div id="log"></div>
+<div id="log">
+ <h3>Content:</h3>
+</div>
]]></html>
<code><![CDATA[
var $log = $( "#log" ),
@@ -36,9 +38,8 @@ $.each( html, function( i, el ) {
nodeNames[i] = "<li>" + el.nodeName + "</li>";
});
-$log.append( "<h3>Node Names:</h3>" );
-
// Insert the node names
+$log.append( "<h3>Node Names:</h3>" );
$( "<ol></ol>" )
.append( nodeNames.join( "" ) )
.appendTo( $log );

0 comments on commit 0056ce6

Please sign in to comment.