Closed Bug 43499 Opened 25 years ago Closed 25 years ago

XML document, sent as 'Content-type: text/plain' is interpreted as HTML

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jrgmorrison, Assigned: harishd)

References

()

Details

(Whiteboard: [nsbeta3+][Fix in hand])

Attachments

(1 file)

Overview Description: An XML document, sent as 'Content-type: text/plain' is being interpreted as HTML; elements with names that match those of valid HTML elements are interpreted as such Steps to Reproduce: 1) load http://jrgm/adhoc/xml-as-text-plain/somexml.txt, which is sent as 'Content-type: text/plain' and has these contents: --snip-------------------------------------------------------------------- <?xml version="1.0"?> <button value="a button"/> <someUnknownElement> blah, blah, blah, blah, blah, blah, blah, blah </someUnknownElement> <b> blah, blah, blah, blah, blah, blah, blah, blah </b> --snip-------------------------------------------------------------------- Actual Results : the <button> and <b> elements are displayed as they would be in an HTML document. Expected Results: (My opinion :-]) -- this should be displayed as a text/plain document, as there is not enough reason to "cast" this content into HTML. Build Date & Platform Bug Found: 2000062108 win95/mac/linux builds Additional Information: I realize that this is a gray area, but I think that in this case, "cast"ing to HTML is incorrect. Other opinions may vary :-]
Odd - I'd expect the file to be interpreted as plaintext. I'll take a look.
Harish, I'm reassigning rickg parser bugs to you.
Assignee: rickg → harishd
Nominating for beta3.
Status: NEW → ASSIGNED
Keywords: nsbeta3
Whiteboard: Fix in hand
Target Milestone: --- → M18
Marking nsbeta3+
Whiteboard: Fix in hand → [nsbeta3+][Fix in hand]
This is FIXED now. XML document with mime-type text/plain will be rendered as plain text.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
verified fixed, mac/linux/win32 for the branch 0929 builds
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: