Closed GoogleCodeExporter closed 9 years ago
第二轮测试: 有误报 95% (19/20)
-------------------------[误报] #1
当 cellspacing="0"
时,会产生误报,此时所有浏览器效果一致。
问题处于 detection 代码中如下部分
if (node.hasAttribute('cellspacing'))
this.addProblem('RX1008', [node]);
建议修改为:
if (node.hasAttribute('cellspacing') &&
parseInt(node.getAttribute('cellspacing'),10) > 0 )
this.addProblem('RX1008', [node]);
测试用例:
table_cellspacing_border_collapse.html
URL:
http://www.microsoft.com/security/malwareremove/default.aspx
http://finance.yahoo.com/
http://en.wikipedia.org/wiki/Africa
http://bangaliguru.com/
http://basketball.fantasysports.yahoo.com/
http://3dpregnancy.parentsconnect.com/
http://allrecipes.com
http://ace.mu.nu/archives/307736.php
http://blogs.wsj.com/digits/2010/11/02/google-translate-takes-on-poetry/
http://cooltamil.com/
http://bubbleshooter.net/game1.php
http://disney.go.com/disneyonice/
……
-------------------------[误报] #2
当空表格设置了 cellspacing 存在非零值 和
'border-collapse:collapse' 时,各浏览器显示一致,产生误报。
测试用例:
table_cellspacing_border_collapse.html
URL:
http://www.google.com/prdhp
Original comment by qianbao...@beyondsoft.com
on 17 Nov 2010 at 4:09
Attachments:
Original comment by wangju...@beyondsoft.com
on 19 Nov 2010 at 2:32
[deleted comment]
根据第二轮测试结果修改后,验证修改结果: 误报 0% (0/100)
Original comment by qianbao...@beyondsoft.com
on 22 Nov 2010 at 11:08
第三轮测试,无误报,准确率 100% 抽样测 189 URL 中的 15 个。
Original comment by wangju...@beyondsoft.com
on 1 Dec 2010 at 8:48
Original issue reported on code.google.com by
wangju...@beyondsoft.com
on 16 Nov 2010 at 8:46Attachments: