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)
Core
DOM: HTML Parser
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: jrgmorrison, Assigned: harishd)
References
()
Details
(Whiteboard: [nsbeta3+][Fix in hand])
Attachments
(1 file)
|
938 bytes,
patch
|
Details | Diff | Splinter Review |
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.
Nominating for beta3.
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
| Reporter | ||
Comment 7•25 years ago
|
||
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.
Description
•