Skip to content

Inaccuracy in reported content model for <hgroup> | <p> is actually allowed #11

@uxFeranmi

Description

@uxFeranmi

As the title says, the content model for <hgoup> allows for any number of <p> tags before and/or after a single heading tag (h1-h6).

The caninclude page for this comparison suggests that the only renderable content inside of an <hgroup> is the heading element (h1-h6). This is obviously wrong, since that would mean the <hgroup> literally has no purpose. If there is no subtitle content allowed, the purpose of the <hgroup> is defeated.

A quick look at the WHATWG section (4.3.7) on hgroup confirms this. It is made clear that the <p> tag is allowed.

Content model: Zero or more <p> elements, followed by one h1, h2, h3, h4, h5, or h6 element, followed by zero or more <p> elements, optionally intermixed with script-supporting elements.

The caninclude page for this should be updated to accurately include this information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions