-
IE6-8不支持defaultView(返回当前 document 对象所关联的 window 对象)
-
IE6-7取得class属性时,必须通过getAttribute('className'),并且readonly返回布尔类型,该函数还可以指定整形类型的参数,1代表执行case-sensitive的查找,2代表以字符串形式返回attribute的值
-
IE9 matchesSelector当node为disconnected nodes时,返回false
-
IE < 9 getAttribute("value")时,使用defaultValue替代
-
IE < 9 getAttribute取不到form的name属性,使用getAttributeNode替代
-
IE6-7的circular references导致内存泄露
-
IE自动删除.innerHTML值的前置空白字符
-
IE自动为空table补上tbody
-
IE < 9 取得事件源通过event.srcElement,其他通过event.target
-
IE < 9 阻止浏览器的默认行为returnValue = false,其他通过调用preventDefault,停止事件冒泡IE cancelBubble = true, 其他通过调用stopPropagation
-
IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,unless wrapped in a div with non-breaking characters in front of it.
-
IE < 8 操作table时,必须添加tbody
-
IE 禁止删除expando properties,必须通过removeAttribute
-
IE < 9确保select显示空白,options.length = 0
-
定义css浮动,IE使用el.style.styleFloat,其他使用cssFloat
-
IE取得样式信息使用el.cssText,其他通过.getAttribute("style")
-
IE创建ajax请求window.ActiveXObject( "Microsoft.XMLHTTP" ),非IE window.XMLHttpRequest()
-
IE 绑定事件elem.attachEvent( "on" + type, eventHandle ),非IE elem.addEventListener( type, eventHandle, false )
-
IE < 9 不支持Array的如下方法:map,forEach,filter,every,some,reduce,lastIndexOf,indexOf,reduceRight
-
IE6/7getAttribute和setAttribute fix
tabindex: 'tabIndex', readonly: 'readOnly', 'for': 'htmlFor', 'class': 'className', maxlength: 'maxLength', cellspacing: 'cellSpacing', cellpadding: 'cellPadding', rowspan: 'rowSpan', colspan: 'colSpan', usemap: 'useMap', frameborder: 'frameBorder', contenteditable: 'contentEditable'
-
Notifications
You must be signed in to change notification settings - Fork 1
NoahZhang/Browser-Compatibility-Summary
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
汇总各种浏览器兼容性问题
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published