Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/mochitest.toml
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=811701">Mozilla Bug 811701</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
</pre>
<script type="application/javascript">
<![CDATA[
var math = document.querySelector("math");
is(math.innerHTML,
"<math> should have innerHTML");
is(math.outerHTML,
"<math> should have innerHTML");
math.innerHTML = "<mo>+</mo>";
"Should have the right namespace after setting innerHTML on <math>");
var polygon = document.querySelector("polygon");
is(polygon.parentNode.innerHTML,
"<svg> should have innerHTML");
is(polygon.parentNode.outerHTML,
"<svg> should have outerHTML");
"<polygon> should have outerHTML");
var svg = document.querySelector("svg");
svg.innerHTML = "<rect/>";
"Should have the right namespace after setting innerHTML on <math>");
]]>
</script>
</body>
</html>