Bug 38902 - contenteditable and  
Summary: contenteditable and  
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Minor
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 06:22 PDT by Novak
Modified: 2021-03-31 01:11 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Novak 2010-05-11 06:22:54 PDT
Hi
when im using 

...<div contenteditable="true">
something#nbsp;unbreakable#nbsp;text
</div> ...

or &#160; 'replacement' for nbsp; was displayed always as normal (wrapped) text 

tested in safari 4.0.5 (531.22.7) 
or/and Qt 4.5.0 webkit (both mingw, Visual Studio 2008 compilation)
or/and Qt 4.6.1 webkit (both mingw, Visual Studio 2008 compilation)

i dont no, if this is a bug or feature.

thanks for reply or solution 
J.N.
Comment 1 Alexey Proskuryakov 2010-05-12 14:14:44 PDT
This is pretty much the same as bug 12828, but that focuses on typing. Maybe there is a closer dupe that I couldn't find.

WebKit HTML editing thinks that it can use non-breaking spaces to simulate runs of spaces, and thus loses the no-break feature, sadly.
Comment 2 Tomas 2020-10-13 07:14:40 PDT
Still present in Safari 14.0 (15610.1.28.1.9, 15610)
macOS 10.15.7
Comment 3 Ryosuke Niwa 2020-10-13 13:29:00 PDT
The workaround here is to use: word-wrap: initial; -webkit-nbsp-mode: initial;