Skip to content

Commit

Permalink
Solidify detection of HTML5 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Aug 26, 2010
1 parent d5f16e4 commit 91b0831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jsdom/browser/htmltodom.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ var HtmlToDom = function(parser){

}

} else if(parser && parser.newPhase) { /* HTML5 parser */
} else if(parser && parser.moduleName == 'HTML5') { /* HTML5 parser */
this.appendHtmlToElement = function(html, element) {
if(typeof html !== 'string') html += '';
var p = new parser({document: element.ownerDocument});
var p = new parser.Parser({document: element.ownerDocument});
var tree = p.parse_fragment(html, element);
throw new Error("Fixme!");
}
Expand Down

0 comments on commit 91b0831

Please sign in to comment.