[Webkit-unassigned] [Bug 14373] New: CSS1: selectors (classes and IDs) cannot start with a dash or with a digit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 24 16:45:42 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14373

           Summary: CSS1: selectors (classes and IDs) cannot start with a
                    dash or with a digit
           Product: WebKit
           Version: 522+ (nightly)
          Platform: PC
               URL: http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/CSS1
                    ForwardCompatibleParsing.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: browserbugs at gtalbot.org


"in CSS1, selectors (element names, classes and IDs) can contain only the
characters A-Z, 0-9, and Unicode characters 161-255, plus dash (-); they cannot
start with a dash or a digit;"

CSS 1, section 7.1 Forward-compatible parsing
http://www.w3.org/TR/REC-CSS1#forward-compatible-parsing

"In CSS, identifiers  (including element names, classes, and IDs in selectors)
can contain only the characters [a-z0-9] and ISO 10646 characters U+00A1 and
higher, plus the hyphen (-) and the underscore (_); they cannot start with a
digit, or a hyphen followed by a digit."

CSS 2.1, section 4.1.3 Characters and case
http://www.w3.org/TR/CSS21/syndata.html#q6

Steps: Load provided URL

Actual results: the 3rd sentence is green; 1st, 2nd and 4th sentence are red;

Expected results: all 4 sentences should be green

Notes: 
- MSIE 7 and Firefox 2.0.0.4 render 2 green sentences and 2 red sentences 
- Opera 9.21 renders 4 green sentences
- This bug spun from bug 14345
- Safari 3.0.2 build 522.13.1 here

Other testcases:
http://www.editions-eyrolles.com/css2/tests/syntaxe/syntax5.htm (look at the
5th, last list item)
http://www.hixie.ch/tests/evil/css/css21/tests/t0509-id-sel-syntax-01-f.htm


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list