NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 643 - change language-tag "grandfathered" and "redundant" errors to warnings
change language-tag "grandfathered" and "redundant" errors to warnings
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
http://dev.w3.org/html5/spec/dom.html...
Depends on: 679
Blocks: 640
  Show dependency treegraph
 
Reported: 2009-09-05 23:10 CEST by Michael[tm] Smith
Modified: 2009-11-25 12:29 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2009-09-05 23:10:51 CEST
The HTML5 draft says, "The lang attribute (in no namespace) specifies the primary language for the element's contents and for any of the element's attributes that contain text. Its value must be a valid BCP 47 language code, or the empty string."

http://dev.w3.org/html5/spec/dom.html#the-lang-and-xml:lang-attributes

RFC 5646 (BCP 47) says: "Although valid in language tags, subtags and tags with a 'Deprecated' field are deprecated, and validating processors SHOULD NOT generate these subtags."

http://tools.ietf.org/html/rfc5646#page-28

So "grandfathered" tags that are deprecated are still valid BCP 47 language codes. Given that, it would seem that validator.nu should report them as Warnings instead of as Errors.
Comment 1 Michael[tm] Smith 2009-11-25 12:24:34 CET
resolved by changes made for bug 679
Comment 2 Michael[tm] Smith 2009-11-25 12:29:10 CET
resolved by changes made for bug 679