Summary: | REGRESSION (r13702): text-transform: capitalize changes non-breaking spaces to spaces | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | mitz | ||||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ap, bdakin | ||||||
Priority: | P1 | Keywords: | HasReduction, Regression | ||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
URL: | http://abadacapoeira.de | ||||||||
Attachments: |
|
Description
mitz
2006-11-21 14:18:12 PST
Created attachment 12033 [details]
Preserve non-breaking spaces when capitalizing
Includes test and change log. No layout test regressions.
Created attachment 12044 [details] Preserve non-breaking spaces when capitalizing This version also improves the fix for <rdar://problem/4502311> from r13702 by applying it to 'previous'. A test for the case that the previous character is a non-breaking space is included, although with current ICU, this patch does not affect this case. Comment on attachment 12044 [details]
Preserve non-breaking spaces when capitalizing
r=me
As discussed on IRC, it would be nice to know more about what happened to nbsp in the new Unicode standard (I don't understand why it stops being a word separator), but that's outside the scope of this bug.
I'm not sure if the whole hack with replacing nbsps is necessary anymore, given that Unicode 5 has restored their behavior of word separators. This fix seems good to land anyway. Committed revision 18453. Corrected expected results (the patch had old pixel results). |