mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
This removes the old code for asyncronously loading scripts during HTML parsing and then executing them afterward. Fixes #3356.
17 lines
354 B
HTML
17 lines
354 B
HTML
<html>
|
|
<head>
|
|
<script src="harness.js"></script>
|
|
</head>
|
|
<body>
|
|
<div>this is
|
|
text content</div>
|
|
<script>
|
|
var div = document.getElementsByTagName('div')[0];
|
|
is(div.textContent, "this is\n text content");
|
|
var newContent = "new text con\ntent";
|
|
div.textContent = newContent;
|
|
is(div.textContent, newContent);
|
|
finish();
|
|
</script>
|
|
</body>
|
|
</html>
|