Skip to content

Commit

Permalink
cheerio update to 1.0.0-rc.10 related tests update & bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dilumn committed Jun 9, 2021
1 parent 4c819c0 commit c021749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function findVariableValue(el, variable) {
return el.styleProps[variable].value;
}

var el = el.parent || el.pseudoElementParent;
var el = el.pseudoElementParent || el.parent;
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ it('juice(html)', function() {

it('juice(document) with htmlparser2', function() {
var dom = htmlparser2.parseDOM('<style>div{color:red;}</style><div/>');
var $ = cheerio.load(dom);
var $ = cheerio.load(dom, {_useHtmlParser2:true});

var expected = '<div style="color: red;"></div>';
juice.juiceDocument($);
Expand Down

0 comments on commit c021749

Please sign in to comment.