Closed Bug 295652 Opened 19 years ago Closed 19 years ago

[FIXr]document.open("text/html; charset=..") opens as text/plain

Categories

(Core :: DOM: Core & HTML, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta3

People

(Reporter: udo_richter, Assigned: bzbarsky)

Details

Attachments

(2 files)

Documents opened with document.open("text/html; charset=iso-8859-1") display its content as text/plain with visible html tags. Although this is not a valid mime type, displaying it as text/plain is a bad idea, because this is a common mistake, and IE displays it as text/html. On a side note: Clicking reload on a generated page turns the page into text/html, and tags disappear. This was introduced by the checkin of bug 73409 The current behaviour is to treat everything but text/html as text/plain. I'd suggest accepting at least everything that begins with text/html.
Attached file testcase
testcase, opens iframe and/or window with several mime types
Attached patch FixSplinter Review
Assignee: general → bzbarsky
Status: NEW → ASSIGNED
Attachment #184658 - Flags: superreview?(jst)
Attachment #184658 - Flags: review?(jst)
Priority: -- → P1
Summary: document.open("text/html; charset=..") opens as text/plain → [FIX]document.open("text/html; charset=..") opens as text/plain
Target Milestone: --- → mozilla1.8beta3
Comment on attachment 184658 [details] [diff] [review] Fix r+sr=jst
Attachment #184658 - Flags: superreview?(jst)
Attachment #184658 - Flags: superreview+
Attachment #184658 - Flags: review?(jst)
Attachment #184658 - Flags: review+
Comment on attachment 184658 [details] [diff] [review] Fix Requesting approval for 1.8b3. This is quite safe, and gives us better compat with IE and NS4.
Attachment #184658 - Flags: approval1.8b3?
Summary: [FIX]document.open("text/html; charset=..") opens as text/plain → [FIXr]document.open("text/html; charset=..") opens as text/plain
Comment on attachment 184658 [details] [diff] [review] Fix a=shaver
Attachment #184658 - Flags: approval1.8b3? → approval1.8b3+
Fixed for 1.8b3.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: