mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
This removes the old code for asyncronously loading scripts during HTML parsing and then executing them afterward. Fixes #3356.
14 lines
339 B
HTML
14 lines
339 B
HTML
<html>
|
|
<head>
|
|
<script src="harness.js"></script>
|
|
</head>
|
|
<body onload="is(document.readyState, 'complete'); is(gNumChanges, 2); finish()">
|
|
<script>
|
|
gNumChanges = 0;
|
|
document.addEventListener('readystatechange', function() {
|
|
gNumChanges++;
|
|
}, true);
|
|
is(document.readyState, "loading");
|
|
</script>
|
|
</body>
|
|
</html>
|