new 2014's XHTML recomendation say about namespaces,
HTML命名空间是:http://www.w3.org/1999/xhtml
所以,一个好的做法是在 XHTML5 文件的根标签中添加属性 xmlns
,
<html xmlns="http://www.w3.org/1999/xhtml">...</html>
但是,让我们看一下http://www.w3.org/1999/xhtml,它会更新吗?
NO:最后一次更新是2013-01-16,关于XHTML它说的是“工作草案”,所以,也许,没有最终决定......
问题: we can trust 在此命名空间声明中?或者我们必须等待它的完整和安全的标准化?
1 回答
为了向后兼容,自2000年以来,所有HTML版本都使用了相同的
http://www.w3.org/1999/xhtml
命名空间,包括XHTML 5 .W3C HTML5 28 October 2014 Recommendation(不是草稿,意味着规范过程已完成)says:
WHATWG's HTML: Living Standard — Last Updated 29 January 2015也says:
It is safe to trust the stability of the http://www.w3.org/1999/xhtml namespace name.
在http://www.w3.org/1999/xhtml/列出的文档页面上存在陈旧的"Working drafts"标签不会更改HTML5的实际推荐状态 . 您还应该知道名称空间URI是词法命名构造which does not even have to be retrievable.