mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Ignore shady CSS scoping in getComposedHTML
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user