I'm trying to use <meta>
tags throughout my HTML document to mark-up hidden microdata values, as descriped in Mark Pilgrim's Dive Into HTML 5. However, when my page loads in Chrome (specifically, Chromium 6.0.418.0), I get the following error messages:
<meta> is not allowed inside <article>. Moving <meta> into the <head>.
<meta> is not allowed inside <span>. Moving <meta> into the <head>.
<meta> is not allowed inside <div>. Moving <meta> into the <head>.
Is there currently a workaround for this? The same thing happens in Firefox 3.6.13, though I am particularly interested in a workaround for WebKit at this time.
More recent versions of WebKit have, like Firefox, an HTML5-compliant parser, and support meta
elements outside the head
element.
I should also note that W3Schools is not related to the W3C, and is well known to publish utter nonsense. Also, Microdata is still part of HTML, and using it is perfectly fine. The fact that it is published in a separate draft at the W3C does not change that in any way.