Bug 22376

Summary: Soft-hyphen character causes data loss under certain condition
Product: WebKit Reporter: Jeffrey King <jeff>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Major CC: ap
Priority: P2    
Version: 525.x (Safari 3.1)   
Hardware: All   
OS: All   
URL: http://test.kingdesk.com/webkit-shy-error/

Description Jeffrey King 2008-11-19 20:56:47 PST
When a soft-hyphen (&shy;) is preceded by another soft-hyphen and one intervening character, the hyphen and intervening character are dropped when the word is wrapped at lines end.

The source code shows the full word without the dropped letter, so this appears to be a display issue only - but a very inconvenient one for us who use hyphenation on our websites.

This has been confirmed on Mac and Windows in Safari and Chrome.
Comment 1 Alexey Proskuryakov 2008-11-20 05:32:52 PST
I can reproduce this with shipping Safari, but not with a nightly build.

This was already fixed as <rdar://problem/5607547>, and is tested with fast/text/soft-hyphen-2.html.