Add a lang attribute on the tac root div

This commit is contained in:
Amauri CHAMPEAUX 2022-02-05 16:52:28 +01:00
parent 21a271e5ba
commit a470a4be59
1 changed files with 4 additions and 0 deletions

View File

@ -529,6 +529,8 @@ var tarteaucitron = {
// Append tarteaucitron: #tarteaucitronRoot last-child of the body // Append tarteaucitron: #tarteaucitronRoot last-child of the body
body.appendChild(div, body); body.appendChild(div, body);
} }
div.setAttribute('lang', language);
div.innerHTML = html; div.innerHTML = html;
//ie compatibility //ie compatibility
@ -612,6 +614,8 @@ var tarteaucitron = {
// Append tarteaucitron: #tarteaucitronRoot last-child of the body // Append tarteaucitron: #tarteaucitronRoot last-child of the body
body.appendChild(div, body); body.appendChild(div, body);
} }
div.setAttribute('lang', language);
div.innerHTML = html; div.innerHTML = html;
} }
}, 1500); }, 1500);