Bug 35369 - Forward delete inserts <br> and backspace is a nop inside last cell in table
Summary: Forward delete inserts <br> and backspace is a nop inside last cell in table
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows Vista
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-24 17:25 PST by Julie Parent
Modified: 2010-03-03 01:50 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julie Parent 2010-02-24 17:25:33 PST
Repro steps:
1. Given the following html: <div contentEditable><table><tr><td>1</td><td>2</td><tr><td>3</td><td>4<br><br></td></tr></table></div> (note the BRs, they matter)
2. But cursor on empty line in the last table cell
3a. Hit backspace/delete
3b. Hit delete/forward delete

Results:
3a. Nothing happens
3b. Another br is inserted

Expected Results:
3a. br is removed
3b. Nothing happens.  Certainly, content shouldn't be added :)


Seen in webkit nightly r55168, but I suspect it has been around for a while, since I also see it in Chrome 5.0.317.2, which is webkit r54340.
Comment 1 Tony Chang 2010-02-26 18:43:10 PST
I think Roland said he would look at table bugs.
Comment 2 Roland Steiner 2010-03-03 01:50:40 PST
https://bugs.webkit.org/show_bug.cgi?id=35632 causes behavior 3a and should be fixed by the patch submitted there.

Behavior 3b is unaffected by that patch, however.