This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28904 - There should be an exhaustive list of replaced elements
Summary: There should be an exhaustive list of replaced elements
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/multipag...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-06 08:06 UTC by Chris Rebert
Modified: 2017-07-29 07:18 UTC (History)
2 users (show)

See Also:


Attachments

Description Chris Rebert 2015-07-06 08:06:26 UTC
Spec: https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements

There seems to be a lack of clarity around which elements can/must be "replaced elements". For example, https://html.spec.whatwg.org/multipage/rendering.html#replaced-elements does not mention the `<button>` element but Mozilla apparently currently treats it as a replaced element (see https://bugzilla.mozilla.org/show_bug.cgi?id=1060131#c5 ).
It would therefore be good if the spec had a section that gave an exhaustive list of all replaced elements in HTML. (The fact that some elements are only replaced in certain cases complicates this slightly, but not insurmountably, IMHO.)
Comment 1 Anne 2015-08-31 07:18:38 UTC
Is the only problem here <button>? Because that is bug 23893.
Comment 2 Chris Rebert 2015-08-31 07:24:16 UTC
I can imagine that there might be other utility in having such a list, but yes, I had opened this with the <button> quandary in mind, having not known about bug 23893 at the time. So I wouldn't object to closing this.
Comment 3 Anne 2015-08-31 07:28:42 UTC
I would be okay with a PR that adds a <div class=note> containing a paragraph and a list listing the replaced elements (defined by HTML, anyway) before "14.4.1 Embedded content". As a summary of elements that are designated as replaced elements in terms of CSS.
Comment 4 Anne 2017-07-29 07:18:45 UTC
Fixed by https://github.com/whatwg/html/pull/2857.