Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge commit '91b0831'

  • Loading branch information...
commit e9f3ff618d6c92d2d88a110729454a58c7de5edd 2 parents fae74a1 + 91b0831
@aredridel aredridel authored
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!");
}
Please sign in to comment.
Something went wrong with that request. Please try again.