Bugzilla – Bug 973
Incorrect error message when <data> is used
Last modified: 2013-07-01 19:17:02 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.
Fixed this by adding support for the <data> element to the sources (and pushed to the W3C validator).