Bug 13080

Summary: Quirk: Non-breaking spaces next to an image should not provide a line-breaking opportunity within a table cell
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, hyatt, mitz, robert
Priority: P2    
Version: 418.x   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Test case (using &nbsp;)
none
Test case (using utf-8 \uC2A0) none

Description David Kilzer (:ddkilzer) 2007-03-15 05:27:49 PDT
Summary:

Non-breaking spaces (&nbsp; or \uC2A0 in UTF-8) around <img> tags within <td> tags are not collapsed when rendered in Safari.

Steps to reproduce:

1. Open Safari/WebKit.
2. Open one of the two test cases.

Expected results:

The non-breaking spaces should be collapsed so that the test cases look the same in Safari/WebKit as they do in Firefox 2.0.0.2.

Actual results:

The non-breaking spaces are not collapsed, causing the test cases to render incorrectly.

Regression:

Shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8L127) renders the test cases incorrectly, so this is not a regression.

Tested with a local debug build of WebKit r20211 with the above software.

Note:

Non-breaking spaces in this situation are collapsed when rendered in Firefox 2.0.0.2 and Opera 9.10.  MSIE 6/7 have not been tested.  Mac IE 5.2.3 does not collapse the non-breaking spaces like Safari.
Comment 1 David Kilzer (:ddkilzer) 2007-03-15 05:29:53 PDT
Created attachment 13645 [details]
Test case (using &nbsp;)
Comment 2 David Kilzer (:ddkilzer) 2007-03-15 05:31:51 PDT
Created attachment 13646 [details]
Test case (using utf-8 \uC2A0)
Comment 3 mitz 2007-03-15 06:40:12 PDT
In standards mode, Firefox behaves like WebKit.
Comment 4 mitz 2007-03-15 06:51:44 PDT
Actually, in Firefox's rendering, the spaces aren't collapsed, they just don't provide a line breaking opportunity.

This bug means that there's still some craziness missing from the implementation in  <http://trac.webkit.org/projects/webkit/changeset/19342> of the crazy Firefox/Opera quirk.
Comment 5 mitz 2007-03-15 06:57:34 PDT
See attachment 12778 [details] and attachment 12779 [details] for the full extent(?) of the quirk in Firefox and WinIE.
Comment 6 David Kilzer (:ddkilzer) 2007-03-15 07:50:06 PDT
Note that this was originally seen on automated search email sent by eBay.

I can provide the email message (which renders incorrectly in Mail 2.1 (752/752.2) on Mac OS X 10.4.8 (8L127)) as well if that would be helpful.

Comment 7 Robert Hogan 2013-07-27 01:34:44 PDT
WebKit renders the test cases the same as FF22 and Opera presto. So this isn't a bug anymore I think.