Skip to content

Commit

Permalink
Ignore shady CSS scoping in getComposedHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jul 11, 2018
1 parent d387a46 commit b1aa305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/shady.html
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@
}

function getComposedHTML(node) {
return ShadyDOM.nativeTree.innerHTML(node);
// Ignore shady CSS scoping
return ShadyDOM.nativeTree.innerHTML(node).replace(/ class="[^"]*"/g, '');
}

function getComposedChildAtIndex(node, index) {
Expand Down

0 comments on commit b1aa305

Please sign in to comment.