Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Clarify contexts in which a figcaption can be used #498

Closed
Alohci opened this issue Jun 16, 2016 · 1 comment
Closed

Clarify contexts in which a figcaption can be used #498

Alohci opened this issue Jun 16, 2016 · 1 comment

Comments

@Alohci
Copy link

Alohci commented Jun 16, 2016

For the figcaption element in the current HTML 5.1 draft it says:

Contexts in which this element can be used:
As a descendant of a figure element.

Elsewhere though the content model of other elements only permits a figcaption as a child of a figure element, and the semantics of figcaption say that

The figcaption element represents a caption or legend for the rest of the contents of the figcaption element’s parent figure element, if any.

So I think that either the contexts in which the figcaption element can be used to say

"As a child of a figure element."

or examples need to give explaining when it is appropriate for the element to be a non-child descendant, and whether the semantics should say

The figcaption element represents a caption or legend for the rest of the contents of the figcaption element’s nearest ancestor figure element, if any.

@chaals
Copy link
Collaborator

chaals commented Jun 16, 2016

This looks like some cleanup required after fixing #177 which relaxed the restriction on where figcaption could appear.

Thanks for picking it up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants