Skip to content

Attributes should not be allowed on package metadata element #1665

Closed

Description

@naglis

Hello, the EPUB 3 spec says that the metadata element takes no attributes, however, the RELAX NG schema (and thus, EPUBCheck) allows optional id, dir and xml:lang.

Here is a minimal test EPUB with id, dir and xml:lang attributes that validates without issues with EPUBCheck v.5.3.0 (added .zip extension to allow uploading to GitHub): Package_metadata_attribute_test_publication.epub.zip

It was clarified in w3c/epub-specs#3023 (comment) that this is a bug.

Activity

  1. rdeltour commented on Jun 26, 2026

    @rdeltour
    Member

    Thanks for the report! I'm adding that to the next maintenance release.

  2. self-assigned this
    on Jun 26, 2026
  3. added
    status: in progressThe issue is being implemented by the development team
    status: has PRThe issue is being processed in a pull request
    and removed
    status: in progressThe issue is being implemented by the development team
    on Sep 11, 2026
  4. added a commit that references this issue on Sep 15, 2026
    4063caa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: has PRThe issue is being processed in a pull requesttype: false-negativeThis issue is about invalid content being incorrectly accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址