summaryrefslogtreecommitdiffstats
path: root/accessible/tests/crashtests/1472024-2.html
blob: 74719cb91a94b9e7d2074fdd245b4ad324cdc351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html class="reftest-wait">
<script>
function tweak() {
  document.getElementById('a').appendChild(document.createTextNode('hZ'));
  document.documentElement.removeAttribute("class");
}

window.onload = () => {
  // double-rAF (to ensure layout/paints have been flushed) before we make
  // the dynamic modification. This seems to make the bug more likely to
  // reproduce, in unpatched builds.
  requestAnimationFrame(() => { requestAnimationFrame(() => {
    tweak();
  }); });
};
</script>
<table>
<tfoot id='a'>
<th>
<textarea>Text