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

content / test / data / accessibility / html / img-link-empty-alt-set.html [blame]

<!DOCTYPE html>
<!--
  @WAIT-FOR:done
-->
<body>
  <a href="/">
    <img src="pipe.jpg" id="img" alt="">
  </a>
  
  <script async defer>
      document.addEventListener('DOMContentLoaded', () => {
        requestAnimationFrame(() => {
          requestAnimationFrame(async () => {
            await new Promise(resolve => setTimeout(resolve, 1000));
            document.getElementById('img').setAttribute('alt','test');
            document.title = 'done';
        });
      })
    });
  </script>
</body>