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) {