From b1aa3058cac9657d5f0da98189a519faee734b99 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 11 Jul 2018 12:17:58 -0700 Subject: [PATCH] Ignore shady CSS scoping in getComposedHTML --- test/unit/shady.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/shady.html b/test/unit/shady.html index 7dfba7bb5e..e53ca50f69 100644 --- a/test/unit/shady.html +++ b/test/unit/shady.html @@ -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) {