From 2729662be0192d5a9b8a9cc94a161cd2025899af 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 f5c881420e..c2f76dc7ed 100644 --- a/test/unit/shady.html +++ b/test/unit/shady.html @@ -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) {