Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mathml/relations/html5-tree/shadow-dom-mozilla-1066554.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<link rel="match" href="shadow-dom-mozilla-1066554-ref.html"/>
<body>
<div id="x"></div>
<script>
function insertShadowMathML() {
var x = document.getElementById("x");
x.attachShadow({ mode: "open" });
x.shadowRoot.innerHTML =
'<math><msup><mi>X</mi><mi>X</mi></msup></math>';
document.documentElement.removeAttribute("class");
}
document.documentElement.addEventListener("TestRendered", insertShadowMathML);
</script>
</body>
</html>