Bug 886390 part - Adjust namespace expectations for SVG and MathML on a previous innerHTML test. r=wchen.

This commit is contained in:
Henri Sivonen 2014-10-27 11:48:11 +02:00
Родитель 1cbb9537c5
Коммит a82f655674
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=811701
is(math.outerHTML, "<math><mtext>test</mtext></math>",
"<math> should have innerHTML");
math.innerHTML = "<mo>+</mo>";
is(math.firstChild.namespaceURI, "http://www.w3.org/1999/xhtml",
is(math.firstChild.namespaceURI, "http://www.w3.org/1998/Math/MathML",
"Should have the right namespace after setting innerHTML on <math>");
var polygon = document.querySelector("polygon");
@ -41,8 +41,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=811701
var svg = document.querySelector("svg");
svg.innerHTML = "<rect/>";
is(svg.firstChild.namespaceURI, "http://www.w3.org/1999/xhtml",
"Should have the right namespace after setting innerHTML on <math>");
is(svg.firstChild.namespaceURI, "http://www.w3.org/2000/svg",
"Should have the right namespace after setting innerHTML on <svg>");
</script>
</body>
</html>