[Webkit-unassigned] [Bug 81656] Backspace/delete produces combined font/span from existing inline elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 15:57:38 PDT 2012


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





--- Comment #7 from Johan "Spocke" Sörlin <spocke at moxiecode.com>  2012-05-24 15:56:42 PST ---
(In reply to comment #6)

Common desktop office suites like word etc keep the formatting when you delete the last character in a P tag. So when you type again it will be the right font size that the paragraph had. But sure it bloats up the HTML a bit since you might then have paragraphs like:
<p><span class="x"><b><i><br></i></b></span></p>

It think it would look strange if you backspaced in this contents:
<p><span style="font-size:large">a</span></p>
<p><span style="font-size:large">b|</span></p>
<p><span style="font-size:large">c</span></p>

And it would produce:
<p><span style="font-size:large">a</span></p>
<p>|</p>
<p><span style="font-size:large">c</span></p>

Since the line height would change when you remove the inline element. For a developer it would be ok but not for n00bs that doesn't understand that rich text editors produce HTML and that the inner element got removed.

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


More information about the webkit-unassigned mailing list