Open Bug 1088194 Opened 10 years ago Updated 3 years ago

contenteditable div - input box formatting problems

Categories

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

33 Branch
x86
Windows Vista
defect

Tracking

()

UNCONFIRMED

People

(Reporter: buy14, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.0; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141011015303

Steps to reproduce:

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head><body style="font-family:arial;font-size:small">
<div contenteditable="true" style="border:1px solid #999999;padding:4px">
Line 1<br><br>
<input type="text" value="Text Box" disabled="disabled">
</div>
</body></html>

------------------------------------------------------------------------------

Put cursor at end of Line 1, press keyboard delete button, empty line 2 is removed.  Press delete button again, nothing happens.



Actual results:

See above


Expected results:

After the second delete, the input box should now be on line 1.

If you add an &nbsp; immediately before the input box, everything works as expected (except if you press delete a third time, the input box should be deleted, but is not).
Attached file 1088194.html
Component: DOM: CSS Object Model → Editor
Keywords: testcase

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), 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.

Attachment

General

Creator:
Created:
Updated:
Size: