[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
Fri Sep 30 12:53:56 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=46800





--- Comment #11 from Dirk Schulze <krit at webkit.org>  2011-09-30 12:53:55 PST ---
(In reply to comment #10)
> You need to implement:
> 
> http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-document-getelementsbytagname
> 
> querySelector should already be case-insensitive.
"""
Element nodes in the HTML namespace whose local name is localName converted to ASCII lowercase.
Element nodes, not in the HTML namespace, whose local name is localName.
"""

This is exactly done in WebKit right now. The only problem: the current code assumes that every element in HTML documents belongs to HTML namespace.

SVG elements are not included in the HTML namespace. Therefor getElementsByTagName('lineargradient') shouldn't work in HTML as well.

-- 
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