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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.8beta3
People
(Reporter: udo_richter, Assigned: bzbarsky)
Details
Attachments
(2 files)
1.20 KB,
text/html
|
Details | |
1.08 KB,
patch
|
jst
:
review+
jst
:
superreview+
shaver
:
approval1.8b3+
|
Details | Diff | Splinter Review |
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•19 years ago
|
||
testcase, opens iframe and/or window with several mime types
Assignee | ||
Comment 2•19 years ago
|
||
Assignee: general → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Updated•19 years ago
|
Attachment #184658 -
Flags: superreview?(jst)
Attachment #184658 -
Flags: review?(jst)
Assignee | ||
Updated•19 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 3•19 years ago
|
||
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•19 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•19 years ago
|
Summary: [FIX]document.open("text/html; charset=..") opens as text/plain → [FIXr]document.open("text/html; charset=..") opens as text/plain
Comment 5•19 years ago
|
||
Comment on attachment 184658 [details] [diff] [review]
Fix
a=shaver
Attachment #184658 -
Flags: approval1.8b3? → approval1.8b3+
Assignee | ||
Comment 6•19 years ago
|
||
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.
Description
•