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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/xhtml5-support/#description)
 * [评价](https://cn.wordpress.org/plugins/xhtml5-support/#reviews)
 * [开发进展](https://cn.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**
 *  最后更新：**16 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **2.9.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/xhtml5-support/)
 * 标签
 * [HTML5](https://cn.wordpress.org/plugins/tags/html5/)[xhtml](https://cn.wordpress.org/plugins/tags/xhtml/)
 *  [高级视图](https://cn.wordpress.org/plugins/xhtml5-support/advanced/)

## 评级

尚未提交反馈。

[Your review](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/)