Closed
Bug 949879
Opened 11 years ago
Closed 11 years ago
Drop support for <pre cols>
Categories
(Core :: Layout, defect, P4)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: emk, Assigned: emk)
References
Details
(Keywords: dev-doc-complete, site-compat, Whiteboard: [DocArea=HTML])
Attachments
(1 file)
3.16 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
This is a non-standard extension derived from Navigator. It is not spec'ed and no other browsers support this. A standard alternative, width attribute, is available.
Comment 1•11 years ago
|
||
From a quick glance, I'd expect this would basically just require removing both usages of nsGkAtoms::cols from http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/HTMLPreElement.cpp , right?
Version: unspecified → Trunk
Updated•11 years ago
|
Priority: -- → P4
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #1)
> From a quick glance, I'd expect this would basically just require removing
> both usages of nsGkAtoms::cols from
> http://mxr.mozilla.org/mozilla-central/source/content/html/content/src/
> HTMLPreElement.cpp , right?
Basically, yes. We can remove a bit more (usages in ParseAttribute and IsAttributeMapped).
Updated•11 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8347216 -
Flags: review?(dbaron)
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8347216 [details] [diff] [review]
Drop support for "cols" attribute of <pre> elements
r=dbaron
But what other browsers support the width attribute? It doesn't seem to be spec'd in HTML5 either, though it was in HTML4. (Unless I'm looking in the wrong places, which I certainly could be.)
Attachment #8347216 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to David Baron [:dbaron] (needinfo? me) (UTC-5) from comment #5)
> But what other browsers support the width attribute?
Other browsers have HTMLPreElement.width property which will reflect the content attribute.
> It doesn't seem to be
> spec'd in HTML5 either, though it was in HTML4. (Unless I'm looking in the
> wrong places, which I certainly could be.)
It is defined in the HTML5 spec, but in the Obsolete features section.
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#HTMLPreElement-partial
Note that this is defined under "Requirements for implementations" subsection, so user agents must implement this as spec'ed despite that authors must not depend on this feature.
HTML5 spec says nothing about the layout effect of the attribute. Actually, it has no visual effect on other browsers. So I was planning to remove the visual effect of the width element, but in a follow-up bug.
Assignee | ||
Comment 7•11 years ago
|
||
> width element
width attribute, of course.
Assignee | ||
Comment 8•11 years ago
|
||
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #6)
> I was planning to remove the
> visual effect of the width element, but in a follow-up bug.
Filed bug 950737.
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
Updated•11 years ago
|
Whiteboard: [DocArea=HTML]
Comment 11•11 years ago
|
||
Keywords: dev-doc-needed → dev-doc-complete
Comment 13•10 years ago
|
||
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre
needs an update then ("cols" and "width" attributes don't work since version 29)
Keywords: dev-doc-complete → dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•