blob: 18f42733bdc0538789c1a82b302b1a8b48204da8 [file] [log] [blame]
Test using setAttributeNode() behaves like setAttribute() to get the existing attribute, but like setAttributeNS() to set the new value."
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS document.documentElement.getAttribute("foobar") is "WebKit"
PASS document.documentElement.hasAttribute("foobar") is true
PASS document.documentElement.getAttribute("FooBar") is "WebKit"
PASS document.documentElement.hasAttribute("FooBar") is true
PASS document.documentElement.getAttributeNS("", "foobar") is "WebKit"
PASS document.documentElement.hasAttributeNS("", "foobar") is true
PASS document.documentElement.getAttributeNS("", "FooBar") is null
PASS document.documentElement.hasAttributeNS("", "FooBar") is false
PASS document.documentElement.attributes.length is 1
PASS camelCaseFoobar is not oldAttributeNode
PASS document.documentElement.getAttribute("foobar") is "Rocks!"
PASS document.documentElement.hasAttribute("foobar") is true
PASS document.documentElement.getAttribute("FooBar") is "Rocks!"
PASS document.documentElement.hasAttribute("FooBar") is true
PASS document.documentElement.getAttributeNS("", "foobar") is "Rocks!"
PASS document.documentElement.hasAttributeNS("", "foobar") is true
PASS document.documentElement.getAttributeNS("", "FooBar") is null
PASS document.documentElement.hasAttributeNS("", "FooBar") is false
PASS oldAttributeNode2 is camelCaseFoobar
PASS document.documentElement.getAttribute("foobar") is "WebKit2"
PASS document.documentElement.hasAttribute("foobar") is true
PASS document.documentElement.getAttribute("FooBar") is "WebKit2"
PASS document.documentElement.hasAttribute("FooBar") is true
PASS document.documentElement.getAttributeNS("", "foobar") is "WebKit2"
PASS document.documentElement.hasAttributeNS("", "foobar") is true
PASS document.documentElement.getAttributeNS("", "FooBar") is null
PASS document.documentElement.hasAttributeNS("", "FooBar") is false
PASS successfullyParsed is true
TEST COMPLETE