Title: XHTML5 Support
Author: Weston Ruter
Published: <strong>2009 年 9 月 28 日</strong>
Last modified: 2010 年 2 月 12 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/xhtml5-support.svg)

# XHTML5 Support

 由 [Weston Ruter](https://profiles.wordpress.org/westonruter/) 開發

[下載](https://downloads.wordpress.org/plugin/xhtml5-support.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/xhtml5-support/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/xhtml5-support/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/xhtml5-support/#developers)

 [技術支援](https://wordpress.org/support/plugin/xhtml5-support/)

## 外掛說明

_This plugin is developed at [Shepherd Interactive](http://www.shepherd-interactive.com/)

for the benefit of the community. No support is available. Please post any questions
to the [support forum](https://wordpress.org/tags/xhtml5-support?forum_id=10).

Allows templates to serve XHTML5 markup by adding the necessary JavaScript shim 
for IE7+, and for IE6 by converting all new elements to `div`s and `span`s 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〉的開發相關工作。

參與者

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

[將〈XHTML5 Support〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/xhtml5-support)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/xhtml5-support/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/xhtml5-support/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/xhtml5-support/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/xhtml5-support/)。

## 變更記錄

#### 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

## 中繼資料

 *  版本 **0.2.4**
 *  最後更新 **17 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 2.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **2.9.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/xhtml5-support/)
 * 標籤:
 * [HTML5](https://tw.wordpress.org/plugins/tags/html5/)[xhtml](https://tw.wordpress.org/plugins/tags/xhtml/)
 *  [進階檢視](https://tw.wordpress.org/plugins/xhtml5-support/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/xhtml5-support/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/xhtml5-support/reviews/)

## 參與者

 *   [ Weston Ruter ](https://profiles.wordpress.org/westonruter/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/xhtml5-support/)