blob: 19ff5c9c638e362cdf0b57d327d3f1a6b9ba1756 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../../resources/js-test.js"></script>
<svg xmlns="http://www.w3.org/2000/svg">
<g></g>
</svg>
<script>
description("Makes sure prefixes are properly serialized by Element.outerHTML in an HTML document.");
let g = document.querySelector("g")
g.setAttributeNS("http://example.com","ex:attr","1")
shouldBeEqualToString("g.outerHTML", "<g ex:attr=\"1\"></g>");
</script>
</body>
</html>