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
   26

content / test / data / accessibility / html / iframe-with-invalid-children-added.html [blame]

<!--
@WAIT-FOR:done
-->
<!DOCTYPE html>
<html>
<body>
  <iframe id="iframe" aria-label="Empty iframe"></iframe>

<script>
  document.addEventListener('DOMContentLoaded', () => {
    setTimeout(() => {
      const iframe = document.getElementById('iframe');
      const label = document.createElement('label');
      label.innerText = "label";
      const input = document.createElement('input');
      label.appendChild(input);
      iframe.appendChild(label);
      setTimeout(() => {
        document.title = 'done';
      }, 250);
    }, 250);
  });
</script>

</body>
</html>