[Webkit-unassigned] [Bug 11671] New: REGRESSION (r13702): text-transform: capitalize changes non-breaking spaces to spaces

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 21 14:18:12 PST 2006


           Summary: REGRESSION (r13702): text-transform: capitalize changes
                    non-breaking spaces to spaces
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
               URL: http://abadacapoeira.de
        OS/Version: Mac OS X 10.4
            Status: NEW
          Keywords: HasReduction, Regression
          Severity: Normal
          Priority: P1
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mitz at webkit.org
                CC: bdakin at apple.com

[Split off from bug 11630, where this was not the main issue]

The testcase (attachment 11590) demonstrates that text-transform:capitalize
changes non-breaking spaces to normal spaces. In shipping Safari, Firefox and
Opera, there is a gap between the two 100x100 squares due to the text, which
includes non-breaking spaces. This is also the case in TOT if text-transform:
capitalize is not specified.

>From StringImpl::capitalize:
        // Replace &nbsp with a real space since ICU no longer treats &nbsp as
a word separator.

This was added in r13702 to address <rdar://problem/4502311>
text-transform:capitalize needs to 
treat nbsp as a regular space when ICU changes.

I think the solution might be as simple as copying from m_data[i - 1] instead
of stringWithPrevious[i] in the loop that copies the non-capitalized

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list