New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator.w3.org/nu allowing "content" attribute #1210
Comments
That’s not what the HTML+RDFa spec says. At https://www.w3.org/TR/html-rdfa/#extensions-to-the-html5-syntax, the HTML+RDFa spec simply says this:
So the HTML+RDFa spec doesn’t at all say that the I guess the HTML+RDFa spec rightly should say something like “the In general, there’s a long list of things the HTML+RDFa spec should say, if it had been specified properly. In implementing RDFa support in the checker, I already had to make a number of guesses about what the spec seemed to be trying to say but didn’t actually say. But I’m now long past doing that. I’ve already invested way more time in adding RDFa support in the checker than RDFa as a technology actually merits. So I’m completely unenthusiastic about spending any further time making any change to the checker to paper over yet another deficiency in the HTML+RDFa and RDFa specs. |
But However, I have to correct your quote:
Text formatting is mine. Notice the causality relationship. At https://www.w3.org/TR/html-rdfa/#document-conformance, the spec says this:
This means that misusing RDFa Core 1.1 attributes
Logic dictates that there was no intention of using RDFa in such a context in the first place, thus breaking the cause/effect chain explicited in the passage your excerpt was quoted from: I imagine that the As a final note, at this point, I guess those attributes are recognized as error in Validator.nu because RDFa explicitly mentions HTML5 and not HTML Living Standard. |
URL being validated or code to reproduce error:
Validation results:
None relevant
(error messages due to incomplete code snippet: no
lang
attribute, no<!DOCTYPE html>
declaration, no<title>
in document head)Expected results:
(as shown on validator.nu result for the same snippet)
Further reasoning
a global
content
attribute in HTML does not exist. It is only allowed on<meta>
element AFAIK.Attribute
content
is present in RDFa spec (and as such it can be specified on any element). In order to be allowed in HTML, though, it should be only present along with a consistent RDFa syntax in the same subtree (namely, atypeof
attribute on an ancestor element and aproperty
attribute on the same element, otherwise it is only an incorrect attribute in no namespace.Full disclosure
Code snippet produced is an excerpt from the example shown in the Schema.org page for the Offer vocabulary, Microdata markup selected. In such a case, use of the
<data>
element would have been expected, but Schema.org seems to not know such syntax (a bug has already been filed for that case, no action expected).The text was updated successfully, but these errors were encountered: