w3c html validator invalid!

Loly, by W3C spec at http://www.w3.org/TR/html401/types.html#type-name, the value for element attribute (e.g. {id, class}) must start with a letter. Quote:

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 (".").

However, you can start with a unicode greek α and it passes W3C's validator.

Here's a test page: Test: Unicode Character in HTML ID Attribute Value.

much more at http://xahlee.org/js/w3c_html_validator_problem.html

Popular posts from this blog

Browser User Agent Strings 2012

11 Years of Writing About Emacs

does md5 creates more randomness?