[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 12:05:38 PDT 2012


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





--- Comment #6 from Ryosuke Niwa <rniwa at webkit.org>  2012-05-24 12:04:43 PST ---
(In reply to comment #0)
> Expected results:
> It should not touch any existing inline elements and only delete the character and insert a BR element to place the caret.

I don't think this is a reasonable expectation because leaving inline elements after deletion can bloat the markup over time.

> Steps to reproduce scenario 1:
> 1. Open the attached URL.
> 2. Click "Dump HTML".
> 3. Notice that the "1" is wrapped in a span.
> 4. Place the caret after the "1".
> 5. Press backspace.
> 6. Click "Dump HTML".
> 7. Notice that the span is now replaced with a font element.
> 
> Steps to reproduce scenario 2:
> 1. Open the attached URL.
> 2. Click "Dump HTML".
> 3. Notice that the "2" is wrapped in a b.
> 4. Click the "Set StyleWithCSS"
> 5. Place the caret after the "2".
> 6. Press backspace.
> 7. Click "Dump HTML".
> 8. Notice that the b is now replaced with a span element.

I think you meant to add step 5.5 which is to type "1" and "2" respectively. Otherwise, WebKit correctly removes all inline elements as expected. Frankly, I'm not convinced that we want this behavior. The author should know whether they want CSS or "presentational" elements.

-- 
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