소스 검색

Add a lang attribute on the tac root div

Amauri CHAMPEAUX 3 년 전
부모
커밋
a470a4be59
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tarteaucitron.js

+ 4 - 0
tarteaucitron.js

@@ -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);