NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 973 - Incorrect error message when <data> is used
Incorrect error message when <data> is used
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-27 13:43 CEST by Jukka K. Korpela
Modified: 2013-07-01 19:17 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jukka K. Korpela 2013-05-27 13:43:07 CEST
According to comments to bug 871, the addition of <data> is pending. However, the error message you now get e.g. about

<!DOCTYPE html>
<title></title>
<p><data></data></p>

is very confusing:


Error: Element data not allowed as child of element p in this context. (Suppressing further errors from this subtree.)

From line 3, column 4; to line 3, column 9

title>↩<p><data></data

Contexts in which element data may be used:
    Where phrasing content is expected.
Content model for element p:
    Phrasing content.


And here “data” in “Contexts in which element data may be used:” is a link to
http://www.whatwg.org/specs/web-apps/current-work/#the-data-element
which clearly described <data> as allowed.

Either <data> should be accepted, or it should be reported simply as not allowed, depending on which document the validator checks against.
Comment 1 Michael[tm] Smith 2013-07-01 19:17:02 CEST
Fixed this by adding support for the <data> element to the sources (and pushed to the W3C validator).