Bug 129573

Summary:   is inserted before and after anchors in contentEditable mode when you use space.
Product: WebKit Reporter: richard.raanaas
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: man.zhong
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screenshot showing premature line break. none

Description richard.raanaas 2014-03-02 07:05:36 PST
As a consequence, you get premature line breaks that makes the text look bad. See attachment. 

I don't see the need for having non-breaking space before and after anchors. Is there a reason for this behavior?
Comment 1 richard.raanaas 2014-03-02 07:17:31 PST
Created attachment 225594 [details]
screenshot showing premature line break.
Comment 2 richard.raanaas 2014-03-19 03:40:57 PDT
I've noticed that this is the case with other inline elements such as bold and italics too.
Comment 3 cyndi 2014-06-04 07:52:26 PDT
could you share the source code of test case?
Comment 4 richard.raanaas 2014-06-05 00:07:34 PDT
You can see the problem if you for example try this editor: http://ckeditor.com/demo

Place the curser behind the last letter in the first link (with the text "Neil Amstrong"). Press space and write "test". Click the "Source" button in the upper right corner. You will see that the source code is now:

<a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a>&nbsp;test