NEW 38902
contenteditable and  
https://bugs.webkit.org/show_bug.cgi?id=38902
Summary contenteditable and  
Novak
Reported 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.
Attachments
Alexey Proskuryakov
Comment 1 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.
Tomas
Comment 2 2020-10-13 07:14:40 PDT
Still present in Safari 14.0 (15610.1.28.1.9, 15610) macOS 10.15.7
Ryosuke Niwa
Comment 3 2020-10-13 13:29:00 PDT
The workaround here is to use: word-wrap: initial; -webkit-nbsp-mode: initial;
Note You need to log in before you can comment on or make changes to this bug.