我可以验证“unique_username”发布的内容是否准确!
(引用)
实际上,很多东西都发生了变化。
首先,您所处的模式非常重要。在 IE8 中,有 3(三种)模式。
- IE5 怪癖 - 您的页面没有 doctype,页面呈现方式与 IE5 类似
- IE 7 标准模式 - 你有一个 doctype,但要么选择退出 IE8 标准模式,要么在本地主机上运行,要么处于“兼容模式”
- IE 8 标准模式 - 您有一个 doctype,并且在 INTRANET 上(默认模式)
现在,如果您在 IE5/IE7 模式下进行渲染,那么除了将添加一些不应干扰您的页面的方法之外,没有任何变化。
但是,如果像大多数人一样,您正在使用 doctype 集运行,因此在 IE8 标准模式下,发生了以下更改。
1.) document.getElementById( id ); //now only returns the CORRECT matches!
2.) .getElementsByName(name); //现在只返回正确的匹配!不,不固定!
3.) .getAttribute( name ); //returns the CORRECT value for the given attribute!
4.) .setAttribute( name, value ); //actually SETS the name/value CORRECTLY (no more cAmElCaSe crud)!
5.) CSS Expressions are NO LONGER allowed (deprecated)
6.) Operation Aborted errors will still be thrown (in some cases) however the cases are fewer, and the error won't kill the entire page/DOM
7.) The attributes[] array on elements should (from the RC build onwards) be correct in terms of contents, have a length, etc.
8.) Button elements now submit the contents of the value attribute, NOT the HTML contents of the Button Tag
还有一堆 CSS 2.1 修复程序,所以以前呈现怪异或需要 hack 的东西应该会好得多。 (有关 alpha/透明度的详细信息,请参见下文 - 发生了很大变化)
详情请参阅IE Blog。
另请参阅Web Bug Track,了解有关 IE8(和所有其他浏览器)的错误、修复的详细信息
SVG、圆角、基于 ECMAScript 的事件监听器、更好的表单元素设计/事件等仍然缺失。
PS 如果您有具体问题,请告诉我们,我们会帮助您解决问题。 ;-)
更新:
window.resize 事件目前在 IE8 Beta2 和 IE8 Partner Release 1 中被破坏(不会触发)现已在 RTM 构建中修复
window.open(); in IE8 Partner Release is sometimes failing "claiming" that the target url is not available (quirky, hard to reproduce)