daisy / ace

Ace by DAISY, an Accessibility Checker for EPUB
MIT License
75 stars 22 forks source link

Report when package document language not set #371

Closed mattgarrish closed 2 years ago

mattgarrish commented 2 years ago

Not setting xml:lang in the package document is considered a violation of SC 3.1.1 Language of Page as without the language the metadata may not be read properly.

We have a technique for this in the techniques document: https://www.w3.org/TR/epub-a11y-tech-11/#lang-001

It doesn't appear that Ace is currently checking that a global language is set, however, but it would be helpful if a missing language declaration were reported.

/cc @GeorgeKerscher

danielweck commented 2 years ago

Fixed via https://github.com/daisy/ace/commit/5bd93d31ba3ec96d61efc5cc7444ec19a80df26f