summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/inline-script-order.html
blob: c0580e7368c2f8f65c4669ac70c1a9d6abc130fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<p id="log"></p>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

var div = document.createElement('div');
var s1 = document.createElement('script');
s1.appendChild(document.createTextNode('document.getElementById(\'log\').appendChild(document.createTextNode(\' First \'))'));
div.appendChild(s1);
var s2 = document.createElement('script');
s2.appendChild(document.createTextNode('document.getElementById(\'log\').appendChild(document.createTextNode(\' Second \'))'));
div.appendChild(s2);
document.body.appendChild(div);
</script>