var str = 'ns:math="http://www.w3.org/1998/Math/MathML">';
/** Test for Bug 418214 **/ var doc = (new DOMParser()).parseFromString(str, "text/xml"); var d = doc.getElementById("d"); var s = doc.getElementById("s"); var m = doc.getElementById("m");
is(d.getAttribute("style"), "border:: invalid", "Shouldn't be parsing style on HTML in data documents");
is(s.getAttribute("style"), "border:: invalid", "Shouldn't be parsing style on SVG in data documents");
is(m.getAttribute("style"), "border:: invalid", "Shouldn't be parsing style on MathML in data documents");
var d2 = d.cloneNode(true); var s2 = s.cloneNode(true); var m2 = m.cloneNode(true);
is(d2.getAttribute("style"), "border:: invalid", "Shouldn't be parsing style on HTML on clone");
is(s2.getAttribute("style"), "border:: invalid", "Shouldn't be parsing style on SVG on clone");
is(m2.getAttribute("style"), "border:: invalid", "Shouldn't be parsing style on MathML on clone");
is(d2.getAttribute("style"), "color: green;", "Adjusting .style should parse style on HTML");
is(s2.getAttribute("style"), "color: green;", "Adjusting .style should parse style on SVG");
is(m2.getAttribute("style"), "color: green;", "Adjusting .style should parse style on MathML");
d = document.adoptNode(d);
s = document.adoptNode(s);
m = document.adoptNode(m);
is(d.getAttribute("style"), "border:: invalid", "Adopting should not parse style on HTML");
is(s.getAttribute("style"), "border:: invalid", "Adopting should not parse style on SVG");
is(m.getAttribute("style"), "border:: invalid", "Adopting should not parse style on MathML");
is(d.getAttribute("style"), "border:: invalid", "Adopting should not parse style on HTML");
is(s.getAttribute("style"), "border:: invalid", "Adopting should not parse style on SVG");
is(m.getAttribute("style"), "border:: invalid", "Adopting should not parse style on MathML");
is(d.getAttribute("style"), "color: green;", "Adjusting .style should parse style on HTML");
is(s.getAttribute("style"), "color: green;", "Adjusting .style should parse style on SVG");
is(m.getAttribute("style"), "color: green;", "Adjusting .style should parse style on MathML");
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.