Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /mathml/relations/css-styling/non-mathml-namespace-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Non MathML namespace</title>
<link rel="match" href="non-mathml-namespace-001-ref.html">
<meta name="assert" content="Verify that MathML stylesheets only apply to its namespace.">
</head>
<body>
<div id="container"></div>
<script>
["semantics", "maction"].forEach((tagName) => {
let el = document.createElement(tagName, nonMathMLNS);
el.innerHTML = "<span>Hello</span> <span>World!</span>";
container.appendChild(el);
});
</script>
</body>
</html>