我試圖在整個HTML文檔中使用<meta>
標記來標記隱藏的微數據值,如Mark Pilgrim的Dive Into HTML 5中所述。然而,當在Chrome中(特別是鉻6.0.418.0)我的頁面加載時,我收到以下錯誤信息:目前有什麼方法可以在WebKit的<head>之外使用HTML5 <meta>標籤嗎?
<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>.
是否有當前解決類似的問題?同樣的事情發生在Firefox 3.6.13中,但我現在對WebKit的解決方法特別感興趣。
你有一個正確的HTML5的doctype?編輯:再看一遍,也許這是從HTML5中取出的一件事情之一? – 2011-01-13 15:38:42
我的確有一個正確的HTML5文檔類型。我想這可能是從HTML5中提取出來的,但據我所知它仍在規範中。我想它只是沒有瀏覽器支持。 – 2011-01-13 15:46:48