You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
When multiple <figcaption> elements are placed within <figure> element, "The W3C Markup Validation Service" output an error.
But this thing is not clearly stipulated in HTML5.3 specification.
The figcaption descendant of figure, if any, represents the caption of the figure element’s contents. If there is no child figcaption element, then there is no caption.
↓
The above should be fixed following;
The figcaption child of figure, if any, represents the caption of the figure element’s contents. If there is no child figcaption element, then there is no caption.
Fixes#1540
Addresses point to clarif content model for `figure` element.
Mention in the prose of the `figcaption` section that there should be no more than one child `figcaption` to a single parent `figure`.
Additionally pull over prose from `table` section, about how a `figcaption` should be used instead of a `caption` if a `table` is the primary content of a `figure`.
Further, added new example showing how 2 `figcaption` elements should be avoided and instead coded as a single `figcaption` to a `figure` showcasing a code snippet.
Includes other file cleanup.
Fixes#1540
Clarify content model for `figure` element.
* Mention in the prose of the `figcaption` section that there should be no more than one child `figcaption` to a single parent `figure`.
* Pull over prose from `table` section, about how a `figcaption` should be used instead of a `caption` if a `table` is the primary content of a `figure`.
* Added new example showing how 2 `figcaption` elements should be avoided and instead coded as a single `figcaption` to a `figure` showcasing a code snippet.
When multiple
<figcaption>
elements are placed within<figure>
element, "The W3C Markup Validation Service" output an error.But this thing is not clearly stipulated in HTML5.3 specification.
Therefore, two fixes are necessary.
https://w3c.github.io/html/grouping-content.html#the-figure-element
↓
The above should be fixed following;
https://w3c.github.io/html/grouping-content.html#the-figcaption-element
↓
The above should be fixed following;
The text was updated successfully, but these errors were encountered: