Bug 41059

Summary: id attribute is incorrectly indexed via setAttribute() call
Product: WebKit Reporter: Alex Milowski <alex>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, cdumez, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
A document that demonstrates the problem. none

Alex Milowski
Reported 2010-06-23 05:52:21 PDT
Created attachment 59505 [details] A document that demonstrates the problem. Any javascript action in an XML document like the following: document.documentElement.setAttribute("id","B"); allows getElementById() to work. This shouldn't work in XML documents. I've attached a test that demonstrates this.
Attachments
A document that demonstrates the problem. (1001 bytes, application/xml)
2010-06-23 05:52 PDT, Alex Milowski
no flags
Lucas Forschler
Comment 1 2019-02-06 09:03:00 PST
Mass moving XML DOM bugs to the "DOM" Component.
Ahmad Saleem
Comment 2 2022-08-20 04:41:26 PDT
*** Safari Technology Preview 151 *** xml:id NOT supported ERROR: id attribute indexed OK: xhtml:id attribute not indexed xml:id via setAttributeNS() NOT supported *** Firefox Nightly 105 *** xml:id NOT supported ERROR: id attribute indexed OK: xhtml:id attribute not indexed xml:id via setAttributeNS() NOT supported *** Chrome Canary 106 *** xml:id NOT supported ERROR: id attribute indexed OK: xhtml:id attribute not indexed xml:id via setAttributeNS() NOT supported _____ Just wanted to share updated results. Thanks!
Alexey Proskuryakov
Comment 3 2022-08-20 10:06:14 PDT
Seems like WONTFIX, as all browsers are aligned in failing the test identically.
Note You need to log in before you can comment on or make changes to this bug.