3 testRunner
.dumpAsText();
6 <script for=
"body" event=
"onload()">
7 alert(
"This script should NOT be run because 'for=body' and 'event=onload()' should not be run.");
10 <script for=
"window" event=
"onload">
11 alert(
"This script SHOULD be run because it has both 'for=window' and 'event=onload'.");
14 <script for=
"window" event=
"onload()">
15 alert(
"This script SHOULD be run because it has both 'for=window' and 'event=onload()'.");
19 alert(
"This script SHOULD be run because it only has a for attribute.");
23 alert(
"This script SHOULD be run because it only has an event attribute.");
26 <script for=
" window " event=
"onload()">
27 alert(
"This script SHOULD be run because it has both 'for= window ' and 'event=onload()' and the whitespace should be irrelevant.");
30 <script for=
"window" event=
" onload() ">
31 alert(
"This script SHOULD be run because it has both 'for=window' and 'event= onload() ' and the whitespace should be irrelevant.");
34 <script for=
" window " event=
" onload() ">
35 alert(
"This script SHOULD be run because it has both 'for= window ' and 'event= onload() ' and the whitespace should be irrelevant.");
38 <script for=
" window " event=
"onload">
39 alert(
"This script SHOULD be run because it has both 'for= window ' and 'event=onload' and the whitespace should be irrelevant.");
42 <script for=
"window" event=
" onload ">
43 alert(
"This script SHOULD be run because it has both 'for=window' and 'event= onload ' and the whitespace should be irrelevant.");
46 <script for=
" window " event=
" onload ">
47 alert(
"This script SHOULD be run because it has both 'for= window ' and 'event= onload ' and the whitespace should be irrelevant.");