blob: 4b9533282d1f523872cbc2d506012169f17de63d (
plain)
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
|
<!DOCTYPE html>
<head>
<script src="../resources/js-test.js"></script>
<script>
function onLoad() {
const x1 = document.getElementById('x1');
x1.addEventListener('DOMSubtreeModified', () => {
const x2 = document.getElementById('x2');
x2.contentDocument;
});
x1.setAttribute('inputmode', 'url');
}
function insertAdjacent() {
const x2 = document.getElementById('x2');
const x3 = document.getElementById('x3');
document.onreadystatechange = insertAdjacent;
x3.insertAdjacentElement('beforebegin', x2);
}
</script>
</head>
<body onload="onLoad()">
<div id="x1"></div>
<object id="x2" data="invalid-url" onerror="insertAdjacent()"></object>
<div id="x3"></div>
</body>
</html>
|