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
27
28
29
30
31
32
content / test / data / accessibility / regression / missing-parent.html [blame]
<!--
@WAIT-FOR:done
-->
<!-- Applying the class "strange" turns <col> into a LayoutImage, which
cannot have children, yet a preexisting descendants exists that tries to
find its parent, triggering a DCHECK -->
<style>
.strange { text-align: center; content: url(data:image/png,aaa); }
</style>
<foo></foo>
<script>
const col = document.createElement('col');
const span = document.createElement('span');
const bar = document.createElement('bar');
const baz = document.createElement('baz');
// Create structure manually as parser will refuse:
// <foo><col><span><bar>
document.querySelector('foo').appendChild(col);
col.appendChild(span);
span.appendChild(bar);
bar.appendChild(baz);
document.addEventListener('DOMContentLoaded', () => {
setTimeout(() => {
document.querySelector('foo').className = 'strange';
document.title = 'done';
}, 50);
});
</script>