This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27911 - Case sensitivity of ID and Class names
Summary: Case sensitivity of ID and Class names
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 3 (show other bugs)
Version: CSS Validator
Hardware: PC Windows NT
: P2 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-27 22:40 UTC by h_legg
Modified: 2015-01-27 22:43 UTC (History)
1 user (show)

See Also:


Attachments

Description h_legg 2015-01-27 22:40:44 UTC
4.1.3 Characters and case states:
"All CSS syntax is case-insensitive within the ASCII range (i.e., [a-z] and [A-Z] are equivalent), except for parts that are not under the control of CSS. For example, the case-sensitivity of values of the HTML attributes "id" and "class", of font names, and of URIs lies outside the scope of this specification."

Most browsers ignore it if you have used an id with capitals in the HTML but lower case in the CSS, however Internet Explorer will ignore the selector.

It would be good if the validator returned at least a warning of a case mismatch.