W3C home > Mailing lists > Public > www-validator@w3.org > July 2013

Re: Meta element with property attribute inside body

From: Michael[tm] Smith <mike@w3.org>
Date: Mon, 8 Jul 2013 12:40:54 +0900
To: St├ęphane Corlosquet <scorlosquet@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20130708034052.GC85235@sideshowbarker>
St├ęphane Corlosquet <scorlosquet@gmail.com>, 2013-07-05 12:23 -0400:

> Looks like http://validator.w3.org/nu/ does allow meta elements with the
> RDFa Lite property attribute. The rules are defined in HTML+RDFa 1.1 [1].
> Here are the relevant excerpts:
> 
> - If the @property RDFa attribute is present on the link or meta elements,
> they MUST be viewed as conforming if used in the body of the document.
> - If the RDFa @property attribute is present on the link element, the @rel
> attribute is not required.
> - If the RDFa @resource attribute is present on the link element, the @href
> attribute is not required.
> - If the RDFa @property attribute is present on the meta element, neither
> the @name, @http-equiv, nor @charset attributes are required and the
> @content attribute MUST be specified.
> 
> In other words, this markup should validate when placed inside the body of
> an HTML5 document.
> <meta property="dc:creator" content="Fyodor Dostoevsky" />
> <link property="dc:creator" href="http://example.org/" />

There's currently a bug in HTML+RDFa checking in the validator that I
accidentally introduced as a regression when I was trying to allow the case
of a meta element with both a "name" attribute and a "property" attribute
to be valid. I'll fix is some time this week.

  --Mike

> I've placed a document with this markup at [2].
> [1] http://www.w3.org/TR/html-rdfa/#extensions-to-the-html5-syntax
> [2] http://files.openspring.net/2013/rdfa/meta-link.html

-- 
Michael[tm] Smith http://people.w3.org/mike
Received on Monday, 8 July 2013 03:41:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC