1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Include the /Lang-property, when it exists, in the StructTree-data (issue 14261)

*Please note:* This is a tentative patch, since I don't have the necessary a11y-software to actually test it.
This commit is contained in:
Jonas Jenwald 2021-11-11 14:36:18 +01:00
parent 712621b508
commit 971ac8e993
4 changed files with 10 additions and 0 deletions

View file

@ -98,6 +98,9 @@ class StructTreeLayerBuilder {
if (structElement.id !== undefined) {
htmlElement.setAttribute("aria-owns", structElement.id);
}
if (structElement.lang !== undefined) {
htmlElement.setAttribute("lang", structElement.lang);
}
}
_walk(node) {