Closed Bug 39849 Opened 25 years ago Closed 24 years ago

Editor deletes TEXTAREAs when switching edit mode.

Categories

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

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: neil, Assigned: mozeditor)

References

()

Details

(Whiteboard: [nsbeta3+][p:2])

Build ID: 2000051820 Reproducible: Always Steps to Reproduce: 1. Open any page containing a textarea. 2. Select File/Edit Page. 3. Ensure that the Edit Mode toolbar is visible. 4. Switch to HTML Source. 5. Switch to any other mode. Actual Results: All TEXTAREAs deleted during one of the two switches. Expected Results: No changes to the HTML should occur.
confirmed this with todays build on win32: 1. create an html file with the following code: <html> <head> <title>test</title> </head> <body> <form method=post action="foo.html"> <TEXTAREA name="textarea" rows="3" cols="26">First line of initial text. Second line of initial text.</TEXTAREA> </form> </body> </html> 2. bring the html file into composer 3. toggle from normal mode to html source mode the textarea is deleted when toggling out of html source mode
Assignee: beppe → cmanske
Status: UNCONFIRMED → NEW
Ever confirmed: true
Switching back to another other mode after using HTML Source simply inserts the source back into the document using nsHTMLEditor::InsertHTML, so that's where the problem is. Have we ever tested inserting form-related HTML content?
Assignee: cmanske → jfrancis
The textarea doesn't even need to be inserted, it just needs to be an existing html file with a textarea in it. We need to test other elements as well.
Priority: P3 → P2
Target Milestone: --- → M17
accepting bug
Status: NEW → ASSIGNED
i suspect this is a dup of 10238, but i'm not marking it as such yet - i want to confirm.
b3 nomination; this may be realted to 10238 but i dont know for sure yet.
Keywords: nsbeta3
Adding correctness and nsbeta3+
Keywords: correctness
Whiteboard: nsbeta3+
setting priority in status whiteboard - editor deletes textareas when switching modes
Whiteboard: nsbeta3+ → [nsbeta3+][p:2]
m18
Target Milestone: M17 → M18
sfraser did some work to support form elements in editor, this is now fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified in 8/28 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.