這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

XHTML5 Support

外掛說明

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: <article> becomes <div class="html5-article">
and <time> becomes <span class="html5-time">

If the browser supports XHTML, the content is served with the application/xhtml+xml
MIME type. This can be disabled by placing remove_filter('option_html_type', 'xhtml5support_filter_html_type')
in functions.php.

Note that print stylesheets do not get applied to IE7+ even with the shim, so if you are relying on the ability for IE users to print properly-styled pages, you must force the IE6 renaming behavior for all versions of IE by doing update_option('xhtml_support_add_msie_shims', false);

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈XHTML5 Support〉的開發相關工作。

參與者

將〈XHTML5 Support〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2010-02-12: 0.2.4

  • Removed pre from the list of new HTML5 block elements

2010-01-22: 0.2.3

  • Preventing behavior when at a “/wp-*” url
  • Preventing xhtml5support_filter_html_type if empty($_SERVER['HTTP_ACCEPT'])

2009-09-28: 0.2.2

  • Initial release