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 }}
Repository navigation
Attributes should not be allowed on package metadata element #1665
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
Activity
rdeltour commentedon Jun 26, 2026
Thanks for the report! I'm adding that to the next maintenance release.
fix: disallow attributes on package 'metadata' element