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

content / test / data / accessibility / html / area-crash.html [blame]

<!--
@BLINK-ALLOW:htmlTag='area'
@WAIT-FOR:done

This is a regression test for a bug that crashes when determining if an area is
a descendant of an anchor.

Note: an <area> that has no href exposes its text inside a generic container.
-->
<html>
<script>
  window.onload = () => {
    document.getElementById('area').textContent = "foo";
    document.body.appendChild(document.createTextNode("done"));
  };
</script>

<body>
  <area id='area'/>
</body>