Permalink
Browse files

Merge commit '91b0831'

  • Loading branch information...
2 parents fae74a1 + 91b0831 commit e9f3ff618d6c92d2d88a110729454a58c7de5edd @aredridel aredridel committed Aug 26, 2010
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 e9f3ff6

Please sign in to comment.