blob: 93728d6f27e25cf7a75c9d9c06eb91bbcb7bb66f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!doctype html>
<title>document.write external script tokenizer order</title>
<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
<script>
var t = async_test();
var order = [];
t.step(function() {
order.push(1);
document.write("<script src='010.js'></script" + "><meta><script src='010-1.js'></script" + ">");
order.push(2);
assert_equals(document.getElementsByTagName("meta").length, 0);
});
</script>
<script>
t.step(function() {
order.push(5);
assert_equals(document.getElementsByTagName("meta").length, 1);
assert_array_equals(order, [1,2,3,4,5]);
});
t.done();
</script>
<div id="log"></div>
|