Closed Bug 305711 Opened 19 years ago Closed 16 years ago

nsIDocumentEncoder::OutputBodyOnly is broken

Categories

(Core :: DOM: Serializers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b3) Gecko/20050719 SeaMonkey/1.0a
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b3) Gecko/20050719 SeaMonkey/1.0a

If I call nsIHTMLEditor::outputToString("text/html", 0) then I get:

<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN">
<html><head><title></title></head><body>hello</body></html>

If I call nsIHTMLEditor::outputToString("text/html",
nsIDocumentEncoder::OutputBodyOnly) then I get:

<body>hello</body></html>

I expect to get:
hello

Reproducible: Couldn't Reproduce
So this is pretty easy to "fix", but what's the right behavior?  Clearly outputing the "</html>" is wrong, but should the <body> tag be output?  I'm guessing "yes", but I'm not sure...
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.9a1?
OS: Windows 2000 → All
Hardware: PC → All
Blocks: 158943
Flags: blocking1.9a1? → blocking1.9-
Sorry, when I created bug 424359 few month ago, I didn't find this current bug.
Depends on: 424359
I would say that bug 424359 fixes this.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.