Skip to content

epub:type restricted to palpable content may cause backward incompatibilities #2486

Closed

Description

@rdeltour

In EPUB 3.3, XHTML requirements says the epub:type attribute MUST only be used on palpable content.

This list is restrictive and will likely cause a lot of existing material being rejected. Several HTML elements like body or li are not palpable content but are often associated an epub:type attribute (they're defined as relevant usage context in the structural semantics vocabulary).

Also, it means epub:type and hidden cannot co-exist, I'm not sure how that's relevant.

Was the idea was to not allow epub:type on some elements like head and style?

If yes, we could either:

Activity

  1. mattgarrish commented on Nov 29, 2022

    @mattgarrish
    Member

    epub:type is not supposed to be used on the head element or within it as the header doesn't contain structural content.

    The restriction was previously only on reading systems to ignore the attribute in the head element, but an authoring restriction was added to match. Agree that palpable doesn't look right.

    I'm fine switching it to "MUST NOT be used on the head element or on metadata content". This would also capture uses on script, link, etc. in the body, as these are not structural elements in the sense that the attribute was created for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EPUB33Issues fixed in the EPUB 3.3 revisionSpec-EPUB3The issue affects the core EPUB 3.X Recommendation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions