Closed
Bug 714242
Opened 13 years ago
Closed 10 years ago
nsHTMLPreElement should no longer recognize the @col attribute (don't support <pre col> from nav4)
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
DUPLICATE
of bug 949879
People
(Reporter: ivan.enderlin, Unassigned)
References
()
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0a1) Gecko/20111229 Firefox/12.0a1
Build ID: 20111229031056
Steps to reproduce:
I have used the @col attribute on a <pre> HTML element.
Actual results:
It is recognized as a @width attribute (same behavior).
Expected results:
It should not be recognized :-).
The code is clear, in content/html/content/src/nsHTMLPreElement.cpp, at line 145: “width: int (html4 attribute == nav4 cols)” and at line 148: “cols: int (nav4 attribute)”. Maybe you keep this attribute for compatibility reasons but the @col attribute is never mentioned in HTML3.*, HTML4.* or HTML5. Is it Netscape only?
Thus, I propose to remove this attribute :-). I have a patch ready to be applied if you agree.
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Updated•13 years ago
|
Attachment #584931 -
Attachment mime type: text/plain → text/html
My testing on XP shows:
<pre col> is not supported by any other browser
<pre width> is not supported by IE and WebKit. Opera does, but doesn't break lines
Browser support history:
http://blooberry.com/indexdot/html/tagpages/p/pre.htm
Updated•11 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
This attribute is not defined in any standard, not even as obsolete or deprecated feature.
http://www.w3.org/TR/html4/struct/text.html#edef-PRE
http://www.w3.org/html/wg/drafts/html/CR/obsolete.html#non-conforming-features
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: nsHTMLPreElement should no longer recognize the @col attribute (from nav4) → nsHTMLPreElement should no longer recognize the @col attribute (don't support <pre col> from nav4)
Comment 5•10 years ago
|
||
These all render identical to me. What's the bug?
This seems to be fixed since Firefox 28, -> WFM
The bug was that <pre width=33> and <pre cols=33>
rendered like <pre style=width:33ch>
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre
needs an update then
(do docs people pick up WFM-closed bugs?)
Flags: needinfo?(eshepherd)
Keywords: dev-doc-needed
> This seems to be fixed since Firefox 28, -> WFM
no, fixed since Firefox 29
You need to log in
before you can comment on or make changes to this bug.
Description
•