Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions mathml/relations/css-styling/non-mathml-namespace-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Non MathML namespace (reference)</title>
</head>
<body>
<div>
<span><span>Hello</span> <span>World!</span></span><span><span>Hello</span> <span>World!</span></span>
</div>
</body>
</html>
21 changes: 21 additions & 0 deletions mathml/relations/css-styling/non-mathml-namespace-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Non MathML namespace</title>
<link rel="help" href="https://www.w3.org/TR/mathml-core/#user-agent-stylesheet">
<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) => {
const nonMathMLNS = "http://www.w3.org/1999/xhtml";
let el = document.createElement(tagName, nonMathMLNS);
el.innerHTML = "<span>Hello</span> <span>World!</span>";
container.appendChild(el);
});
</script>
</body>
</html>