From a470a4be591876e1409269930362acd3cc73e92d Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sat, 5 Feb 2022 16:52:28 +0100 Subject: [PATCH] Add a lang attribute on the tac root div --- tarteaucitron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tarteaucitron.js b/tarteaucitron.js index ab511e2..0a9cafc 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -529,6 +529,8 @@ var tarteaucitron = { // Append tarteaucitron: #tarteaucitronRoot last-child of the body body.appendChild(div, body); } + + div.setAttribute('lang', language); div.innerHTML = html; //ie compatibility @@ -612,6 +614,8 @@ var tarteaucitron = { // Append tarteaucitron: #tarteaucitronRoot last-child of the body body.appendChild(div, body); } + + div.setAttribute('lang', language); div.innerHTML = html; } }, 1500);