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 2a7c43f commit 2729662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/shady.html
Expand Up @@ -459,7 +459,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 2729662

Please sign in to comment.