This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Similar to Bug 155. Both XML and HTML allow underscores in id atributes. Line: 82 Context : #skip Parse Error - #skip_nav {display: none;}
Bug does only exist in online version, not in the CVS version anymore. Considered as fixed
*** Bug 155 has been marked as a duplicate of this bug. ***
HTML specifications, free to read online, have never allowed the underscore in ID values.
According to HTML 4.01 specs, underscores are allowed: ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
Sorry, I forgot to include the relevant links to the specs: http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.2 This shows that the id attribute is of type 'name' token. http://www.w3.org/TR/REC-html40/types.html#type-name This shows that name and id tokens can have underscores.