Closed
Bug 88987
Opened 24 years ago
Closed 19 years ago
should not support PLAINTEXT
Categories
(Core :: DOM: HTML Parser, defect, P3)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
WONTFIX
mozilla1.8alpha5
People
(Reporter: web, Assigned: bzbarsky)
References
Details
Attachments
(4 files, 3 obsolete files)
1.07 KB,
text/html
|
Details | |
930 bytes,
text/html
|
Details | |
10.12 KB,
patch
|
jst
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
2.19 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Using Mozilla 0.9.2 on Windows 98 SE.
The XMP, LISTING, and PLAINTEXT tags are evaluated, though they are obsolete in HTML 4.01, even when using the Strict (not quirks) doctype switch (specifying 4.01 Transitional with the URL goes Strict, right?). Additionally, Mozilla does not evaluate character entities (< and >) inside XMP and doesn't seem to have a problem when not using these. I'll add a test case shortly.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Sorry, forgot to add this:
http://bugzilla.mozilla.org/show_bug.cgi?id=69792 may depend on this, as it talks about rendering XMP.
Reporter | ||
Comment 3•24 years ago
|
||
Just because they're obsolete doesn't mean we can't recognize them. We'd like
to keep quirks mode / strtict mode differences to a minimum. The goal of strict
mode is to be something that we *could* be applying to all pages if there hadn't
been bugs in previous browsers, and we wouldn't want to break old pages in such
a mode. The goal of quirks mode is to make only the changes from strict mode
that are needed to display pages correctly.
We don't truly support DTDs for HTML. That would require using an SGML parser,
which would break the web. So marking WONTFIX, although one could also argue
that it's INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 5•24 years ago
|
||
If you are going to leave these in, then the issues with them need to be addressed, i.e. the problems noted in the test cases with character entities in XMP. Additionally, all text in a web page following PLAINTEXT should be shown as text, not rendered as HTML. This is not the current behavior in 0.9.2.
Opera 5.12 seems to have the desired rendering of the second test case.
Reopening bug.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
Entities should not be expanded in XMP, LISTING, or PLAINTEXT. So the only bug
here seems to be that we don't make PLAINTEXT take up the entire page. However,
PLAINTEXT was obsolete even in HTML 2.0. Quoting from
http://info.internet.isi.edu/in-notes/rfc/files/rfc1866.txt :
5.5.2.1. Example and Listing: XMP, LISTING
The <XMP> and <LISTING> elements are similar to the <PRE> element,
but they have a different syntax. Their content is declared as CDATA,
which means that no markup except the end-tag open delimiter-in-
context is recognized (see 9.6 "Delimiter Recognition" of [SGML]).
NOTE - In a previous draft of the HTML specification, the syntax
of <XMP> and <LISTING> elements allowed closing tags to be treated
as data characters, as long as the tag name was not <XMP> or
<LISTING>, respectively.
Since CDATA declared content has a number of unfortunate interactions
with processing techniques and tends to be used and implemented
inconsistently, HTML documents should not contain <XMP> nor <LISTING>
elements -- the <PRE> tag is more expressive and more consistently
supported.
The <LISTING> element should be rendered so that at least 132
characters fit on a line. The <XMP> element should be rendered so
that at least 80 characters fit on a line but is otherwise identical
to the <LISTING> element.
NOTE - In a previous draft, HTML included a <PLAINTEXT> element
that is similar to the <LISTING> element, except that there is no
closing tag: all characters after the <PLAINTEXT> start-tag are
data.
Reporter | ||
Comment 7•24 years ago
|
||
My apologies in presuming entities should be expanded--rereading my correspondence with Opera, the use PRE when given LISTING or XMP.
I'm not sure what you're saying about PLAINTEXT. You say it's obsolete, but you don't say anything about how it should be handled. It's obviously being handled incorrectly according to the RFC, as you pointed out.
Changing from "Obsolete XMP, LISTING, and PLAINTEXT recognized" to "should not
support PLAINTEXT" and moving to Parser.
This requires removing support from the parser and from html.css. Do Nav 4.x
and MSIE do it "right"? If so, we're probably better off just dropping support
for it since it was dropped before HTML 2.0.
Assignee: clayton → harishd
Status: UNCONFIRMED → NEW
Component: HTML Element → Parser
Ever confirmed: true
Summary: Obsolete XMP, LISTING, and PLAINTEXT recognized → should not support PLAINTEXT
Reporter | ||
Comment 9•24 years ago
|
||
Netscape 4.77 and IE 4.77 support PLAINTEXT correctly, yes. They both show the rest of the tags in the page as plaintext.
Comment 10•24 years ago
|
||
This bug has been marked "future" because the original netscape engineer working
on this is over-burdened. If you feel this is an error, that you or another
known resource will be working on this bug,or if it blocks your work in some way
-- please attach your concern to the bug for reconsideration -----
![]() |
Assignee | |
Comment 11•21 years ago
|
||
![]() |
Assignee | |
Comment 12•21 years ago
|
||
I could probably hack things so that plaintext would actually "work" (that is,
just ignore its end tag). Or we can remove this (per that patch). Either is
fine with me, I guess....
![]() |
Assignee | |
Comment 13•21 years ago
|
||
Attachment #148579 -
Attachment is obsolete: true
![]() |
Assignee | |
Comment 14•20 years ago
|
||
Attachment #148580 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•20 years ago
|
Attachment #159120 -
Flags: superreview?(dbaron)
Attachment #159120 -
Flags: review?(jst)
Comment 15•20 years ago
|
||
Comment on attachment 159120 [details] [diff] [review]
Merged to tip
r=jst
Attachment #159120 -
Flags: review?(jst) → review+
Attachment #159120 -
Flags: superreview?(dbaron) → superreview+
![]() |
Assignee | |
Updated•20 years ago
|
Assignee: harishd → bzbarsky
Status: ASSIGNED → NEW
Priority: -- → P3
Target Milestone: Future → mozilla1.8alpha5
![]() |
Assignee | |
Comment 16•20 years ago
|
||
Fixed for 1.8a5.
Status: NEW → RESOLVED
Closed: 24 years ago → 20 years ago
Resolution: --- → FIXED
Comment 17•20 years ago
|
||
So plaintext is not supported anymore?
Shouldn't these two rules also be removed, then?
http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsHTMLSpanElement.cpp#126
http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsHTMLSpanElement.cpp#138
![]() |
Assignee | |
Comment 18•20 years ago
|
||
![]() |
Assignee | |
Comment 19•20 years ago
|
||
Attachment #162484 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•20 years ago
|
Attachment #162485 -
Flags: superreview?(jst)
Attachment #162485 -
Flags: review?(jst)
Comment 20•20 years ago
|
||
Comment on attachment 162485 [details] [diff] [review]
And attaching the right file...
r+sr=jst
Attachment #162485 -
Flags: superreview?(jst)
Attachment #162485 -
Flags: superreview+
Attachment #162485 -
Flags: review?(jst)
Attachment #162485 -
Flags: review+
![]() |
Assignee | |
Comment 21•20 years ago
|
||
Checked that patch in.
Comment 22•20 years ago
|
||
Reopening. Plaintext support was just checked back in for bug 287990...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
![]() |
Assignee | |
Comment 23•19 years ago
|
||
OK, this is apparently wontfix; we now have correct support for <plaintext>.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 19 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•