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 12294 - IDs starting with underscores `_` validate as XHTML 1.0 Strict
Summary: IDs starting with underscores `_` validate as XHTML 1.0 Strict
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: All All
: P2 normal
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: 2011-03-13 20:58 UTC by Nyuszika7H
Modified: 2011-08-23 19:49 UTC (History)
0 users

See Also:


Attachments
sample document (470 bytes, application/xhtml+xml)
2011-03-13 20:59 UTC, Nyuszika7H
Details

Description Nyuszika7H 2011-03-13 20:58:35 UTC
Until HTML5, IDs can only start with a letter, but if I have an ID starting with an underscore in my document, it still validates as XHTML 1.0 Strict.
Comment 1 Nyuszika7H 2011-03-13 20:59:48 UTC
Created attachment 969 [details]
sample document
Comment 2 Nyuszika7H 2011-03-13 21:08:10 UTC
After posting this bug, I've found out that IDs starting with underscores are valid in XHTML 1.0. http://lists.w3.org/Archives/Public/www-validator/2010May/0028.html