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

RESOLVED FIXED in mozilla1.8beta3

Status

()

Core
DOM: Core & HTML
P1
normal
RESOLVED FIXED
12 years ago
12 years ago

People

(Reporter: Udo Richter, Assigned: bz)

Tracking

Trunk
mozilla1.8beta3
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

12 years ago
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.
(Reporter)

Comment 1

12 years ago
Created attachment 184646 [details]
testcase

testcase, opens iframe and/or window with several mime types
(Assignee)

Comment 2

12 years ago
Created attachment 184658 [details] [diff] [review]
Fix
Assignee: general → bzbarsky
Status: NEW → ASSIGNED
(Assignee)

Updated

12 years ago
Attachment #184658 - Flags: superreview?(jst)
Attachment #184658 - Flags: review?(jst)
(Assignee)

Updated

12 years ago
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+
(Assignee)

Comment 4

12 years ago
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?
(Assignee)

Updated

12 years ago
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+
(Assignee)

Comment 6

12 years ago
Fixed for 1.8b3.
Status: ASSIGNED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.