Closed Bug 101342 Opened 23 years ago Closed 23 years ago

Extraneous <br> when <td> content is <textarea>

Categories

(Core :: DOM: Editor, defect)

x86
Windows 95
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: neil, Assigned: mozeditor)

Details

(Whiteboard: EDITORBASE; 1 day)

Using Build ID: 2001091903
Steps to reproduce problem:
1. Edit a new blank page
2. Insert/HTML <table><tr><td><textarea></textarea></td></tr></table>

Actual results: table cell contains a <br> and a textarea

Expected results: table cell only contains a textarea
Additional information: It is impossible to delete the <br>
The problem seems to be nsHTMLEditor::IsEmptyNode() ... I think we need to check 
against a list of known container nodes (textarea, comboboxes, etc) that should 
prevent it from recursing and cause it to return PR_FALSE.
Assignee: kin → jfrancis
da da da  
095
Status: NEW → ASSIGNED
Whiteboard: EDITORBASE; 1 day
Target Milestone: --- → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla0.9.7
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified in Win 95 using build 2001121803.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.