haikuwebkit/LayoutTests/fast/dom/attribute-downcast-right.html

18 lines
526 B
HTML

<SCRIPT>
if (window.testRunner)
testRunner.dumpAsText();
var oElement = document.createElement("s")
var oElementNS = document.createElementNS(null, "test");
oElementNS.setAttributeNS(null, "test", "value");
var oAttributeNS = oElementNS.getAttributeNodeNS(null, "test");
var oAttributeNSClone = oAttributeNS.cloneNode();
oElement.setAttributeNode(oAttributeNSClone);
</SCRIPT>
<BODY>
This tests that an Attribute object is not downcasted to a MappedAttribute.
See http://bugs.webkit.org/show_bug.cgi?id=21032 .
</BODY>