linqiangl / compatibility-detector

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

RT1008 word_wrap_spaces #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
第一轮测试:有误报(100%)

---------------------------[误报] #1

有以下几种情况:

1、多出的空格后无视觉上紧邻的可视元素(即使有紧邻的可�
��元素,如果只多出有限的空格的话,在视觉上也很难看出差
异,并且很多时候这不会影响布局;如果多个中间有空格的��
�藏内联元素前后都有可视元素,则非 IE 
浏览器不会忽略这些空格,而是合并他们为一个空格。待讨��
�。);
2、多出的空格不会影响容器的宽度(不足以撑开容器)且没�
��溢出容器(容器设置宽度且 ‘overflow : hidden’);
3、容器 ‘display:none’。

在检测不可视的元素时,默认不渲染的 TITLE META SCRIPT LINK 
标签也会报(它们的父元素设置了 ‘word-wrap : 
break-word;’)。它们中间有多少空格都会被合并为一个空格;
如果这些元素中间有一个非以上元素的内联元素,则该元素��
�面的所有空格合并为一个空格,元素后面的空格合并为一个�
��格。这是否需要特殊处理,是否需要补充文章,待讨论(201
0-10-15)。

测试用例:
additional_spaces_no_vistual_effect.html

URL:
http://auction.paipai.com/cgi-bin/auction_fixup_confirm/view
http://c.youku.com/iku/
http://dl.pconline.com.cn/download/51240.html
http://www.alibaba.com/
http://ent.youku.com/
http://news.youku.com/

---------------------------[误报] #2

如果多个中间有空格的隐藏内联元素位于可见元素之前,则��
�有浏览器都不会生成空格。

测试用例:
locate_before_visible_inline_element.html

URL:
http://123.sogou.com/
http://c.youku.com/iku/
http://www.alibaba.com/
http://news.qq.com/
http://www.ku6.com/
http://www.u7758.com/
http://www.kaixin001.com/
http://ent.youku.com/
http://gc.imop.com/passport/reg.php
http://news.youku.com/

---------------------------[误报] #3

当可见元素为块级元素的时候不会生成空格

测试用例:
block_visible_element_inside.html

URL:
http://c.youku.com/iku/
http://dl.pconline.com.cn/download/51240.html
http://news.qq.com/
http://www.u7758.com/
http://www.kaixin001.com/
http://ent.youku.com/
http://news.youku.com/

Original issue reported on code.google.com by wangju...@beyondsoft.com on 16 Nov 2010 at 8:35

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
------------------------------------------------------

第二轮测试:有误报 100% (20/20)

-----------------------[误报] #1

子元素中存在 'display:none' 元素或 input [type=hidden] 
元素会产生误报。

测试用例:
word_wrap_spaces.html

URL:
http://meego.com/
http://www.abc.net.au/news/stories/2010/11/03/3055849.htm?section=entertainment
http://portableapps.com/
http://showbiz.sky.com/
http://www.alexa.com/
http://www.bjsbrewhouse.com/
http://gosupermodel.com/
http://youtube-global.blogspot.com/
http://www.nysenate.gov/
http://www.eurasianet.org/node/62285
http://professorlayton3walkthrough.blogspot.com/
……

Original comment by qianbao...@beyondsoft.com on 16 Nov 2010 at 10:59

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by wangju...@beyondsoft.com on 19 Nov 2010 at 2:29

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
提测

Original comment by duanli...@beyondsoft.com on 17 Dec 2010 at 7:05

GoogleCodeExporter commented 8 years ago
该问题并不常见,而可能触发该问题的充分条件较多,导致��
� detector 误报率极高,故WontFix。

Original comment by duanli...@beyondsoft.com on 20 Dec 2010 at 5:51