Bug 44432

Summary: setAttributeNS() should throw NAMESPACE_ERR for prefixed qualifiedName with null namespace
Product: WebKit Reporter: Andreas Kling <kling>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ap, cdumez, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 44443    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch none

Description Andreas Kling 2010-08-23 09:25:30 PDT
According to DOM Level 2, if setAttributeNS() is called with a null namespace and a qualifiedName with a prefix, NAMESPACE_ERR should be raised.

Spec link:
http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-ElSetAttrNS
Comment 1 Andreas Kling 2010-08-23 09:27:53 PDT
Created attachment 65130 [details]
Proposed patch
Comment 2 Andreas Kling 2010-08-23 09:35:03 PDT
Comment on attachment 65130 [details]
Proposed patch

Clearing flags on attachment: 65130

Committed r65814: <http://trac.webkit.org/changeset/65814>
Comment 3 Andreas Kling 2010-08-23 09:35:12 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 WebKit Review Bot 2010-08-23 10:19:27 PDT
http://trac.webkit.org/changeset/65814 might have broken Leopard Intel Release (Tests)
Comment 5 Alexey Proskuryakov 2010-08-23 11:13:23 PDT
(In reply to comment #0)
> According to DOM Level 2

I think that we care about DOM 3 Core and Firefox compatibility, not about DOM 2 Core. But in this case, DOM 3 Core and Firefox 3.6.8 both agree.
Comment 6 Andreas Kling 2010-08-24 01:15:34 PDT
Committed r65874: <http://trac.webkit.org/changeset/65874>
Comment 7 Lucas Forschler 2019-02-06 09:02:58 PST
Mass moving XML DOM bugs to the "DOM" Component.