Skip to content
Browse files

Solidify detection of HTML5 parser

  • Loading branch information...
1 parent d5f16e4 commit 91b0831e93e42af50e99235bd568c051d311bb48 @aredridel aredridel committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jsdom/browser/htmltodom.js
View
4 lib/jsdom/browser/htmltodom.js
@@ -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!");
}

0 comments on commit 91b0831

Please sign in to comment.
Something went wrong with that request. Please try again.