RESOLVED FIXED 24548
createElementNS("", name) should create an element in null namespace
https://bugs.webkit.org/show_bug.cgi?id=24548
Summary createElementNS("", name) should create an element in null namespace
Alexey Proskuryakov
Reported 2009-03-12 08:20:40 PDT
This is a change in DOM 3 Core over DOM 2 Core - empty strings are converted to null when used for namespace URIs. Firefox and Opera both work this way. See <http://lists.w3.org/Archives/Public/public-webapps/2009JanMar/0720.html>.
Attachments
fix it radically (3.61 KB, patch)
2009-03-12 09:11 PDT, Alexey Proskuryakov
darin: review+
Alexey Proskuryakov
Comment 1 2009-03-12 09:11:29 PDT
Created attachment 28530 [details] fix it radically
Alexey Proskuryakov
Comment 2 2009-03-13 00:15:36 PDT
We had bug 15172 filed about the same issue with setAttributeNS already.
Julien Chaffraix
Comment 3 2009-03-13 00:49:53 PDT
I think your change will have the side effect of changing how createAttributeNS("", name) works. Is it covered by other test case(s) or am I missing something?
Alexey Proskuryakov
Comment 4 2009-03-13 01:02:12 PDT
Yes, this is why I called it a radical fix - it will fix all NS APIs at once (and they should all have this behavior per DOM 3 Core). Is createAttributeNS a special case that shouldn't be fixed for some reason?
Julien Chaffraix
Comment 5 2009-03-13 01:26:30 PDT
(In reply to comment #4) > Yes, this is why I called it a radical fix - it will fix all NS APIs at once > (and they should all have this behavior per DOM 3 Core). > > Is createAttributeNS a special case that shouldn't be fixed for some reason? I have not tested so I would say no. createAttributeNS was just a example of other NS methods that would be impacted: I was just interested in why you were only testing one among them as it may have have given a compatibility reason to not fix one (note that I would rather keep a uniform behaviour in NS methods as you are doing).
Darin Adler
Comment 6 2009-03-13 12:34:03 PDT
Comment on attachment 28530 [details] fix it radically r=me
Alexey Proskuryakov
Comment 7 2009-03-14 04:57:00 PDT
Alexey Proskuryakov
Comment 8 2009-03-14 04:57:57 PDT
(I've added a test for setAttributeNS).
Lucas Forschler
Comment 9 2019-02-06 09:03:42 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.