Fix jQuery.parseHTML does not recognize document

Fix #2307.
This commit is contained in:
Junle Li
2014-06-09 21:28:09 +08:00
parent d2989ce35f
commit d12b83f8d0
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -3114,6 +3114,9 @@ function test_parseHTML() {
$( "<ol></ol>" )
.append( nodeNames.join( "" ) )
.appendTo( $log );
// parse HTML with all parameters
$.parseHTML( str, document, true );
}
// http://api.jquery.com/jQuery.parseJSON/