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

Andreas Kling
Reported 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
Attachments
Proposed patch (4.04 KB, patch)
2010-08-23 09:27 PDT, Andreas Kling
no flags
Andreas Kling
Comment 1 2010-08-23 09:27:53 PDT
Created attachment 65130 [details] Proposed patch
Andreas Kling
Comment 2 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>
Andreas Kling
Comment 3 2010-08-23 09:35:12 PDT
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 4 2010-08-23 10:19:27 PDT
http://trac.webkit.org/changeset/65814 might have broken Leopard Intel Release (Tests)
Alexey Proskuryakov
Comment 5 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.
Andreas Kling
Comment 6 2010-08-24 01:15:34 PDT
Lucas Forschler
Comment 7 2019-02-06 09:02:58 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.