Explorar o código

Add a lang attribute on the tac root div

Amauri CHAMPEAUX %!s(int64=3) %!d(string=hai) anos
pai
achega
a470a4be59
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tarteaucitron.js

+ 4 - 0
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);