Bug 38902
Summary: | contenteditable and | ||
---|---|---|---|
Product: | WebKit | Reporter: | Novak <webkit> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Minor | CC: | ap, ayg, enrica, hamal, joone, justin.garcia, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Windows XP |
Novak
Hi
when im using
...<div contenteditable="true">
something#nbsp;unbreakable#nbsp;text
</div> ...
or   '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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
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
Still present in Safari 14.0 (15610.1.28.1.9, 15610)
macOS 10.15.7
Ryosuke Niwa
The workaround here is to use: word-wrap: initial; -webkit-nbsp-mode: initial;