[Webkit-unassigned] [Bug 71152] New: selectors should match attribute name with case sensitivity based on element & document type
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 28 15:47:03 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=71152
Summary: selectors should match attribute name with case
sensitivity based on element & document type
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rafaelw at chromium.org
CC: darin at apple.com, ian at hixie.ch, koivisto at iki.fi,
ojan at chromium.org
E.G. in, the following document:
<svg width="100%" height="100%" viewBox="0 0 100 1"
xmlns="http://www.w3.org/2000/svg" version="1.1">
<style type="text/css"><![CDATA[
path { fill:none; stroke:black; stroke-width:1 }
]]></style>
<path d="M0,0 L100,0" pathLength="200" stroke-dasharray="100,100"/>
</svg>
document.querySelector('*[pathLength]');
should return the path element. This currently only works if the document *isn't* html. If it is html then the above selector matches nothing because the selector parser grammar lower-cases the selectorAttributeName
>From reading the spec & talking with Hixie & Ojan, the correct for matching attribute names appears to be:
-if html document & html element: match case-insensitive
-otherwise match case-sensitive
FWIW, This is Gecko's current behavior.
I'm happy to work on a patch for this if a likely reviewer agrees this is the correct behavior.
--
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