Ignore shady CSS scoping in getComposedHTML

This commit is contained in:
Kevin Schaaf
2018-07-11 12:17:58 -07:00
parent d387a4619b
commit b1aa3058ca

View File

@@ -456,7 +456,8 @@ function getEffectiveChildNodes(node) {
}
function getComposedHTML(node) {
return ShadyDOM.nativeTree.innerHTML(node);
// Ignore shady CSS scoping
return ShadyDOM.nativeTree.innerHTML(node).replace(/ class="[^"]*"/g, '');
}
function getComposedChildAtIndex(node, index) {