Skip to content

Commit

Permalink
Fix shady dom style querySelector
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Sep 18, 2017
1 parent 2da30c3 commit d5b6bad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/unit/property-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,14 @@
});

test('does not parse bindings inside <style>', function() {
assert.include(el.shadowRoot.querySelector('style').textContent, "[[binding]]");
var style = el.shadowRoot.querySelector('style');
// native shadow dom
if (style) {
assert.include(style.textContent, "[[binding]]");
// shady dom
} else {
assert.include(document.querySelector('[scope="x-basic"]').textContent, "[[binding]]");
}
});

});
Expand Down

0 comments on commit d5b6bad

Please sign in to comment.