Bug 129573 -   is inserted before and after anchors in contentEditable mode when you use space.
Summary:   is inserted before and after anchors in contentEditable mode when you ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-02 07:05 PST by richard.raanaas
Modified: 2014-06-05 00:07 PDT (History)
1 user (show)

See Also:


Attachments
screenshot showing premature line break. (15.41 KB, image/png)
2014-03-02 07:17 PST, richard.raanaas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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