[Webkit-unassigned] [Bug 46800] querySelectorAll/getElementsByTagName unable to find SVG camelCase elements imported into HTML
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 21 11:22:58 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=46800
--- Comment #16 from Mike Bostock <mbostock at cs.stanford.edu> 2011-12-21 11:22:58 PST ---
My interpretation is that getElementsByTagName and querySelectorAll should be case-sensitive when matching SVG elements in HTML documents, but case-insensitive when matching HTML elements. The problem is that the case-sensitive check currently applies per-document rather per-element. In Node.cpp:
if (document()->isHTMLDocument())
name = localName.lower();
So, if you querySelectorAll("linearGradient"), that should match an HTML element with the name <LiNeaRGradIENt> despite the absurd casing, but only match SVG elements of the same exact case: <linearGradient>.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list