daisy / ace

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

lang and xml:lang #394

Closed gregoriopellegrino closed 9 months ago

gregoriopellegrino commented 9 months ago

Please provide the following details if possible or relevant:

I have a document with this code:

<p lang="it-IT" xml:lang="it-IT">
  <span xml:lang="en-GB">
   Bla bla bla
  </span>
</p>

The problem I am encountering is that the xml:lang attribute is interpreted only by the reading solutions that read XHTML and ignored by those that read HTML. Perhaps it would make sense to add a check to make sure that the language attributes are all expressed using one approach (lang or xml:lang) or both?

Ace does not currently report anything, but I think this code could be problematic in some cases.