【发布时间】:2014-12-06 14:54:25
【问题描述】:
对于使用title 参数的浏览器,我们应该使用什么值来告诉浏览器使用其默认值?
在 Safari 5.1.7 (7534.57.2) 中,如果我将 null 或 undefined 作为 title 参数,它将使用浏览器默认值:
然而,Opera 12.16 分别使用字符串"null" 和"undefined":
什么是“正确”的行为?
在 Opera 上,如果 "null" 和 "undefined" 不起作用,我们如何设置为“默认”?
(MDN's History docs 似乎没有太多关于History.pushState/replaceState 参数的允许值的信息。)
【问题讨论】:
标签: javascript html dom cross-browser html5-history