Summary: | element.hasAttribute() fails to return true for nodes imported from XML documents | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mihai Sucan <mihai.sucan> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED CONFIGURATION CHANGED | ||||||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, cdumez, jchaffraix, rniwa, sam | ||||
Priority: | P2 | Keywords: | HasReduction | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://www.robodesign.ro/coding/0063/ | ||||||
Attachments: |
|
Description
Mihai Sucan
2009-09-04 09:59:14 PDT
Case sensitivity behavior is implemented differently for getAttribute() on one hand, and hasAttribute()/setAttribute()/removeAttribute()/getAttributeNode() on another. Which behavior is "right" may be subject to discussion, but having it different seems clearly wrong. See also: bug 20247 comment 10. Created attachment 39208 [details]
Test case
Mass moving XML DOM bugs to the "DOM" Component. All browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6 on macOS 12.5) are showing "FAILED!" and I am not sure on Web-Spec so appreciate if someone can mark this bug accordingly. Thanks! This is config changed now that Firefox's behavior is aligned with WebKit's. imported.hasAttributeNS(null, 'camelCase') returns true. |