Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous script loading during HTML parsing #3721

Merged
merged 5 commits into from Oct 29, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Test for sync script loading

  • Loading branch information
mbrubeck committed Oct 29, 2014
commit b2c211ef860b0af9636319ebc77996a53e32cac8
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<script src="harness.js"></script>
</head>
<body>
<script>
var output = "start";

var script = document.createElement("script");
script.setAttribute('type','text/javascript');
script.textContent = "output += ' middle ';";
document.body.appendChild(script);

output += "end";
is(output, "start middle end");
finish();
</script>
</body>
</html>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.