[Webkit-unassigned] [Bug 20288] editable span with empty text gets optimized away

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 13 11:10:14 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20288





------- Comment #1 from wilsong at gmail.com  2008-08-13 11:10 PDT -------
I would argue that this is not a bug.

Collapsing whitespace is the default behavior of CSS2.1 text, and typically
what is expected.  You can specify style="white-space:pre;" and the space will
be drawn and you can edit it...

Try this:

=================
<html>
<head><title>test</title></head>
<body>
<div contenteditable="true">
<span contenteditable="false">Enter some text:</span>
<span style="white-space:pre;" id="bug">        </span>
</div>
</body>
</html>
=================


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list