W3C home > Mailing lists > Public > public-html@w3.org > July 2015

Re: HTML5 proposal: allow <meta name="..." content="..." /> outside of <head>

From: Martin Janecke <w3.org@prlbr.com>
Date: Mon, 27 Jul 2015 23:34:29 +0200
To: Derek Gray <dgray90@live.com>, public-html@w3.org
Message-ID: <55B6A3E5.6050803@prlbr.com>
On 27.07.15 22:44, Derek Gray wrote:
>
> [...]
>
> I would like to propose that, if the name attribute is present, the meta element should fall under the categories of metadata, flow and phrasing content, and should be allowed in contexts where metadata or phrasing content is expected. This is because as it stands, document authors have no specification-compliant means of including machine-readable metadata within the body of a document without doing one of the following:

I'd be interested in an example. Can you describe a case where authors 
would like to use a meta element but putting it in the head doesn't make 
sense?


> - Using an existing element's text content and hiding the element with the 'hidden' attribute or CSS
> - Using an existing element's 'data-' attributes
> - Using a script element with an alternate 'type'
> - Using an HTML comment (with Javascript wizardry to hack the information out of it)

In some cases, the data element could be an option as well.


> The element is there, the attributes are there, the parsing model is there. Can this be allowed?
Received on Monday, 27 July 2015 21:34:58 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:44 UTC