1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25

content / test / data / accessibility / regression / language-changed-on-html.html [blame]

<!--
@WAIT-FOR:Done
@BLINK-ALLOW:htmlTag*
@BLINK-ALLOW:language*
-->
<html lang="en">
<body>
  <div role="group" id="test-status" aria-label="running"></div>
  <script>
  document.addEventListener('DOMContentLoaded', () => {
    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        // After the page finishes loading...
        //
        // Change the language attribute on <html>. We expect the language
        // attribute to be changed in the accessibility tree.

        document.querySelector('html').setAttribute('lang', 'vi');
        document.getElementById('test-status').setAttribute('aria-label', 'Done');
      });
    });
  });
  </script>
</body>
</html>