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

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