內容簡介
這個外掛是在Shepherd Interactive開發的,為了社群的利益而開發。此外,不提供支援。如有任何問題,請在支援論壇中發問。
這個外掛可以透過添加必要的JavaScript shim為IE7+服務XHTML5標記,並通過將所有新元素轉換為帶有原始HTML5元素名稱前綴為“html5-”的和元素,例如: <article> 變成 <div class="html5-article"> 並且操作 <time> 變成<span class="html5-time">。
如果瀏覽器支援XHTML,則內容將使用 application/xhtml+xml MIME類型進行服務。這可以通過在 functions.php 中放置 remove_filter('option_html_type', 'xhtml5support_filter_html_type') 來禁用。
請注意,即使使用shim,打印樣式表也不會應用於IE7+,因此,如果您依賴於IE用戶能夠打印正確風格的頁面的能力,您必須強制在所有IE版本中啟用IE6命名行為,方法是使用代碼: update_option('xhtml_support_add_msie_shims', false);
外掛標籤
開發者團隊
原文外掛簡介
This plugin is developed at Shepherd Interactive
for the benefit of the community. No support is available. Please post any questions to the support forum.
Allows templates to serve XHTML5 markup by adding the necessary JavaScript shim for IE7+, and for IE6 by converting all new elements to divs and spans with class names that contain the original HTML5 element name prefixed by “html5-“, for example:
