long7181226 / compatibility-detector

Automatically exported from code.google.com/p/compatibility-detector
Apache License 2.0
0 stars 0 forks source link

BX9021 onreadystatechange #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
------------------------------[误报]

对于 SCRIPT 标签,IE 和 Opera 有 ‘onreadystate’ 
事件,在装载结束后,readyState 分别为 ‘complete’ 和 
‘loaded’,其他浏览器无 onreadystate 事件,但除 IE 外都支持 
‘onload’ 
事件。如果给以上两个事件同时绑定一个可以兼容各浏览器��
�函数,将出现误报。

测试用例:
onreadystatechange_load_script.html + test.js

URL:
http://astro.sina.com.cn/
http://auto.qq.com/
http://bbs.city.tianya.cn/tianyacity/articleslist/0/41.shtml
http://blog.sina.com.cn/
http://cartoon.tudou.com/
http://dc.pconline.com.cn/
http://detail.zol.com.cn/cell_phone/index207959.shtml
http://expo2010.ifeng.com/
http://guba.eastmoney.com/topic,600030.html
http://military.china.com/
http://mobile.pconline.com.cn/
http://money.163.com/stock/
http://nba.tom.com/video/
http://news.sohu.com/
http://www.hao123.com/
http://www.tianya.cn/publicforum/articleslist/0/develop.shtml
http://www.xunlei.com/
--------------------------------------------------------------------------------
--
http://3dpregnancy.parentsconnect.com/
http://abcnews.go.com/
http://blog.seattlepi.com/seattlepolitics/archives/226993.asp?from=blog_last3
http://blogs.sacbee.com/capitolalertlatest/2010/11/youth-vote-not-there-for-mari
j.html
http://bossip.com/

------------------------------[误报]

(待讨论)对于 IFRAME、IMG 等元素,如果把 ‘onreadystate’ 和 
‘onload’ 都以 attribute 
的形式写入并在脚本中做处理,虽然脚本能正常运行,但也��
�报错。

测试用例:
onreadystatechange_element.html + test.jpg

URL:
http://bj.58.com/

Original issue reported on code.google.com by duanli...@beyondsoft.com on 16 Nov 2010 at 2:27

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
根据测试结果修正检测代码 误报率 0% (0/50)

Original comment by qianbao...@beyondsoft.com on 23 Nov 2010 at 10:56

GoogleCodeExporter commented 9 years ago
测试结果一直不够20 URL,说明问题很少见,将其终结。

Original comment by qianbao...@beyondsoft.com on 6 Dec 2010 at 9:57

GoogleCodeExporter commented 9 years ago

Original comment by sundongg...@beyondsoft.com on 8 Dec 2010 at 10:15