Open Bug 482624 Opened 15 years ago Updated 3 years ago

Backspace in table cell can delete previous cell contents

Categories

(Core :: DOM: Editor, defect, P5)

x86
Windows XP
defect

Tracking

()

People

(Reporter: annie.sullivan, Unassigned)

References

()

Details

Steps to reproduce:

1. Go to Midas Demo: http://www.mozilla.org/editor/midasdemo/
2. Check "View HTML Source" and paste in the following HTML:

<table border="1" bordercolor="#ff0000" cellpadding="10" cellspacing="0"><tbody><tr><td><div id="div1"><img id="img1" width="100" height="100"></div></td><td><div id="div2"><img id="img2" width="100" height="100"></div></td></tr></tbody></table>

3. Uncheck "View HTML Source" and put cursor in the first cell, and press left arrow key until the cursor moves to second cell. (Note: cursor is not visible, but you can see if you type a key it shows up in second cell. Selection startNode is div2, start offset 0).

4. Press backspace.

Actual result:
Previous cell contents (div1/img1) are deleted. Cursor not visible in step 3.

Expected result:
Backspace does nothing at start of table. Cursor always visible.

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.