Closed Bug 13067 Opened 26 years ago Closed 26 years ago

No html written for empty content

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: akkzilla, Assigned: mozeditor)

Details

Simon noticed this: Run apprunner. Do New->Blank Page to bring up an empty editor window. Now save this, or do Debug->Output HTML, and observe that nothing at all is written. We should at least be writing something like <html><head></head><body></body></html>, which represents the actual document structure at that point. The reason we're not writing anything is that at the beginning of nsHTMLEditor::OutputToString(), the rules WillDoAction sets cancel to PR_TRUE. Why are we checking the rules at all for output? Shouldn't we just write whatever we have?
btw, we should also have <title></title> in the <head> :-)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
steve fixed this
Status: RESOLVED → REOPENED
Steve's fix left us outputting the editor's bogus node, which isn't right; it's supposed to be invisible. Reopening.
Status: REOPENED → ASSIGNED
Target Milestone: M11
yeah - i'll fix this in my usual weekend checkin. I'll make it behave and provide a debugging ifdef for doing the wrong thing, which is sometimes useful.
Resolution: FIXED → ---
Clearing FIXED resolution due to reopen.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
someone else fixed this already...
Status: RESOLVED → VERIFIED
verified 9/21 build.
You need to log in before you can comment on or make changes to this bug.