开发者

Is there the difference in JS execution in IE6 andIE7

开发者 https://www.devze.com 2022-12-08 13:28 出处:网络
seems thats 开发者_运维技巧it isShort Answer, Yes. There are subtle nuances and implementation differences.What are the issues you are running into?Yes, especially in IE8 running in Standards Mode.

seems thats 开发者_运维技巧it is


Short Answer, Yes.

There are subtle nuances and implementation differences. What are the issues you are running into?


Yes, especially in IE8 running in Standards Mode.

e.g.

//in IE6, 7, and IE8 quirks and IE8 compatibility mode, this will return
//the first element with either a 'name' or 'id' attribute value of "description"
//(CasE iNsenSiTIVE)

//in IE8 standards mode, it will return the first element with the
//EXACT id attribute value of "description"
var desc = document.getElementById('description');

plus dozens of changes with .setAttribute() and .getAttribute()

0

精彩评论

暂无评论...
验证码 换一张
取 消