From beac69dde9c1415bfa00add5a11477d64699960c Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 6 Aug 2012 11:27:06 +0100 Subject: Enable level2 core test suite, disabling all tests but documentgetelementbyid01 --- .../level2/core/setAttributeNodeNS04.xml.unknown | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 test/testcases/tests/level2/core/setAttributeNodeNS04.xml.unknown (limited to 'test/testcases/tests/level2/core/setAttributeNodeNS04.xml.unknown') diff --git a/test/testcases/tests/level2/core/setAttributeNodeNS04.xml.unknown b/test/testcases/tests/level2/core/setAttributeNodeNS04.xml.unknown new file mode 100644 index 0000000..86ccd12 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNodeNS04.xml.unknown @@ -0,0 +1,54 @@ + + + + + + +setAttributeNodeNS04 +NIST + + The "setAttributeNodeNS(newAttr)" adds a new attribute. + If an attribute with that local name and that namespaceURI is already + present in the element, it is replaced by the new one. + + Retrieve the first emp:address element and add a new attribute + to the element. Since an attribute with the same local name + and namespaceURI already exists, it is replaced by the new one and + returns the replaced "Attr" node. + This test uses the "createAttributeNS(namespaceURI,localName) + method from the Document interface to create the new attribute to add. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3