Related to webkit.org/b/149238. We should treat undefined as nulls in createElementNS and createAttributeNS.
Created attachment 269041 [details] Fixes the bug
Comment on attachment 269041 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=269041&action=review r=me with comments. > LayoutTests/fast/dom/Document/createAttributeNS-undefined-namespace-expected.txt:3 > +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". There is no TEST COMPLETE at the end :P > LayoutTests/fast/dom/Document/createAttributeNS-undefined-namespace.html:10 > +shouldBe('attr.prefix', 'null'); shouldBeNull() > LayoutTests/fast/dom/Document/createAttributeNS-undefined-namespace.html:11 > +shouldBe('attr.localName', '"foo"'); shouldBeEqualToString() > LayoutTests/fast/dom/Document/createAttributeNS-undefined-namespace.html:12 > +shouldBe('attr.namespaceURI', 'null'); shouldBeNull() > LayoutTests/fast/dom/Document/createAttributeNS-undefined-namespace.html:13 > +shouldBe('element.getAttributeNodeNS(null, "foo")', 'null'); shouldBeNull() > LayoutTests/fast/dom/Document/createAttributeNS-undefined-namespace.html:16 > +</script> You're missing the -post script.
Committed r195152: <http://trac.webkit.org/changeset/195152>