4 testRunner
.dumpAsText();
7 <h3>Variations on type attribute of script tag
</h3>
8 <h4>These scripts should execute
</h4>
10 <li>no type attribute
<script>document
.write("executed");</script></li>
11 <li>empty string
<script type=
"">document.write(
"executed");
</script></li>
12 <li>text/javascript
<script type=
"text/javascript">document
.write("executed");</script></li>
13 <li>text/JAVASCRIPT
<script type=
"text/JAVASCRIPT">document.write(
"executed");
</script></li>
14 <li>TEXT/JAVASCRIPT
<script type=
"TEXT/JAVASCRIPT">document.write(
"executed");
</script></li>
15 <li>'text/javascript '
<script type=
"text/javascript ">document.write(
"executed");
</script></li>
16 <li>' text/javascript '
<script type=
" text/javascript ">document.write(
"executed");
</script></li>
17 <li>text/jscript
<script type=
"text/jscript">document.write(
"executed");
</script></li>
18 <li>text/ecmascript
<script type=
"text/ecmascript">document.write(
"executed");
</script></li>
19 <li>text/livescript
<script type=
"text/livescript">document.write(
"executed");
</script></li>
20 <li>text/javascript1.1
<script type=
"text/javascript1.1">document.write(
"executed");
</script></li>
21 <li>text/javascript1.2
<script type=
"text/javascript1.2">document.write(
"executed");
</script></li>
22 <li>text/javascript1.3
<script type=
"text/javascript1.3">document.write(
"executed");
</script></li>
23 <li>application/javascript
<script type=
"application/javascript">document.write(
"executed");
</script></li>
24 <li>application/ecmascript
<script type=
"application/ecmascript">document.write(
"executed");
</script></li>
25 <li>application/x-javascript
<script type=
"application/x-javascript">document.write(
"executed");
</script></li>
27 <h4>These scripts should not execute
</h4>
29 <li>one space
<script type=
" ">document.write(
"executed");
</script></li>
30 <li>text/
<script type=
"text/">document.write(
"executed");
</script></li>
31 <li>text/vbscript
<script type=
"text/vbscript">document.write(
"executed");
</script></li>
32 <li>text/vbs
<script type=
"text/vbs">document.write(
"executed");
</script></li>
33 <li>text/xml
<script type=
"text/xml">document.write(
"executed");
</script></li>
34 <li>text/javascript1
<script type=
"text/javascript1">document.write(
"executed");
</script></li>
35 <li>text/javascript1.0
<script type=
"text/javascript1.0">document.write(
"executed");
</script></li>
36 <li>text/javascript1.4
<script type=
"text/javascript1.4">document.write(
"executed");
</script></li>
37 <li>text/javascript1.5
<script type=
"text/javascript1.5">document.write(
"executed");
</script></li>
38 <li>text/javascript1.6
<script type=
"text/javascript1.6">document.write(
"executed");
</script></li>
39 <li>application/jscript
<script type=
"application/jscript">document.write(
"executed");
</script></li>
40 <li>application/x-jscript
<script type=
"application/x-jscript">document.write(
"executed");
</script></li>
41 <li>application/livescript
<script type=
"application/livescript">document.write(
"executed");
</script></li>
42 <li>application/x-livescript
<script type=
"application/x-livescript">document.write(
"executed");
</script></li>
43 <li>application/x-ecmascript
<script type=
"application/x-ecmascript">document.write(
"executed");
</script></li>
44 <li>application/javascript1.2
<script type=
"application/javascript1.2">document.write(
"executed");
</script></li>
45 <li>application/x-javascript1.2
<script type=
"application/x-javascript1.2">document.write(
"executed");
</script></li>
46 <li>javascript
<script type=
"javascript">document.write(
"executed");
</script></li>
47 <li>jscript
<script type=
"jscript">document.write(
"executed");
</script></li>
48 <li>ecmascript
<script type=
"ecmascript">document.write(
"executed");
</script></li>
49 <li>livescript
<script type=
"livescript">document.write(
"executed");
</script></li>
50 <li>livescript1.1
<script type=
"livescript1.1">document.write(
"executed");
</script></li>
51 <li>JAVASCRIPT
<script type=
"JAVASCRIPT">document.write(
"executed");
</script></li>
52 <li>JavaScript
<script type=
"JavaScript">document.write(
"executed");
</script></li>
53 <li>JavaScript
1 <script type=
"JavaScript 1">document.write(
"executed");
</script></li>
54 <li>JavaScript
1.0 <script type=
"JavaScript 1.0">document.write(
"executed");
</script></li>
55 <li>JavaScript
1.1 <script type=
"JavaScript 1.1">document.write(
"executed");
</script></li>
56 <li>JavaScript
1.1.1 <script type=
"JavaScript 1.1.1">document.write(
"executed");
</script></li>
57 <li>JavaScript
1.2 <script type=
"JavaScript 1.2">document.write(
"executed");
</script></li>
58 <li>JavaScript
1.3 <script type=
"JavaScript 1.3">document.write(
"executed");
</script></li>
59 <li>JavaScript
1.4 <script type=
"JavaScript 1.4">document.write(
"executed");
</script></li>
60 <li>JavaScript
1.5 <script type=
"JavaScript 1.5">document.write(
"executed");
</script></li>
61 <li>JavaScript
1.6 <script type=
"JavaScript 1.6">document.write(
"executed");
</script></li>
62 <li>JavaScript
1.7 <script type=
"JavaScript 1.7">document.write(
"executed");
</script></li>
63 <li>JavaScript
1.8 <script type=
"JavaScript 1.8">document.write(
"executed");
</script></li>
64 <li>JavaScript
1.9 <script type=
"JavaScript 1.9">document.write(
"executed");
</script></li>
65 <li>JavaScript
2 <script type=
"JavaScript 2">document.write(
"executed");
</script></li>
66 <li>JavaScript
2.1 <script type=
"JavaScript 2.1">document.write(
"executed");
</script></li>
67 <li>JavaScript
10 <script type=
"JavaScript 10">document.write(
"executed");
</script></li>
68 <li>JavaScript
10.0 <script type=
"JavaScript 10.0">document.write(
"executed");
</script></li>
69 <li>_javascript
<script type=
"_javascript">document.write(
"executed");
</script></li>
70 <li>javascript_
<script type=
"javascript_">document.write(
"executed");
</script></li>
71 <li>javascript_1.0
<script type=
"javascript_1.0">document.write(
"executed");
</script></li>
72 <li>javascript
1.0 x
<script type=
"javascript 1.0 x">document.write(
"executed");
</script></li>
73 <li>JavaScript1
<script type=
"JavaScript1">document.write(
"executed");
</script></li>
74 <li>JavaScript1.0
<script type=
"JavaScript1.0">document.write(
"executed");
</script></li>
75 <li>JavaScript1.1
<script type=
"JavaScript1.1">document.write(
"executed");
</script></li>
76 <li>JavaScript1.2
<script type=
"JavaScript1.2">document.write(
"executed");
</script></li>
77 <li>JavaScript1.3
<script type=
"JavaScript1.3">document.write(
"executed");
</script></li>
78 <li>JavaScript1.4
<script type=
"JavaScript1.4">document.write(
"executed");
</script></li>
79 <li>JavaScript1.4
.1 <script type=
"JavaScript1.4.1">document.write(
"executed");
</script></li>
80 <li>JavaScript1.5
<script type=
"JavaScript1.5">document.write(
"executed");
</script></li>
81 <li>JavaScript1.6
<script type=
"JavaScript1.6">document.write(
"executed");
</script></li>
82 <li>JavaScript1.7
<script type=
"JavaScript1.7">document.write(
"executed");
</script></li>
83 <li>1.0 javascript
<script type=
"1.0 javascript">document.write(
"executed");
</script></li>
84 <li>' javascript '
<script type=
" javascript ">document.write(
"executed");
</script></li>
85 <li>' javascript1.1 '
<script type=
" javascript1.1 ">document.write(
"executed");
</script></li>
86 <li>'
javascript
'
<script type=
" javascript ">document.write(
"executed");
</script></li>
87 <li>' javascript
1.0 '
<script type=
" javascript 1.0 ">document.write(
"executed");
</script></li>
88 <li>' javascript
1.0 '
<script type=
" javascript 1.0 ">document.write(
"executed");
</script></li>
89 <li>jscript
1 <script type=
"jscript 1">document.write(
"executed");
</script></li>
90 <li>jscript
1.0 <script type=
"jscript 1.0">document.write(
"executed");
</script></li>
91 <li>ecmascript
1 <script type=
"ecmascript 1">document.write(
"executed");
</script></li>
92 <li>ecmascript
1.0 <script type=
"ecmascript 1.0">document.write(
"executed");
</script></li>
93 <li>livescript
1 <script type=
"livescript 1">document.write(
"executed");
</script></li>
94 <li>livescript
1.0 <script type=
"livescript 1.0">document.write(
"executed");
</script></li>
95 <li>' jscript
1.0 '
<script type=
" jscript 1.0 ">document.write(
"executed");
</script></li>
96 <li>disabled_javascript
<script type=
"disabled_javascript">document.write(
"executed");
</script></li>
97 <li>xxxjavascriptxxx
<script type=
"xxxjavascriptxxx">document.write(
"executed");
</script></li>
98 <li>bogus
<script type=
"bogus">document.write(
"executed");
</script></li>
101 <h3>Variations on language attribute of script tag
</h3>
102 <h4>These scripts should execute
</h4>
104 <li>no language attribute
<script>document
.write("executed");</script></li>
105 <li>empty string
<script language=
"">document.write(
"executed");
</script></li>
106 <li>jscript
<script language=
"jscript">document.write(
"executed");
</script></li>
107 <li>ecmascript
<script language=
"ecmascript">document.write(
"executed");
</script></li>
108 <li>livescript
<script language=
"livescript">document.write(
"executed");
</script></li>
109 <li>javascript
<script language=
"javascript">document
.write("executed");</script></li>
110 <li>JAVASCRIPT
<script language=
"JAVASCRIPT">document.write(
"executed");
</script></li>
111 <li>JavaScript
<script language=
"JavaScript">document
.write("executed");</script></li>
112 <li>JavaScript1.0
<script language=
"JavaScript1.0">document.write(
"executed");
</script></li>
113 <li>JavaScript1.1
<script language=
"JavaScript1.1">document.write(
"executed");
</script></li>
114 <li>JavaScript1.2
<script language=
"JavaScript1.2">document.write(
"executed");
</script></li>
115 <li>JavaScript1.3
<script language=
"JavaScript1.3">document.write(
"executed");
</script></li>
116 <li>JavaScript1.4
<script language=
"JavaScript1.4">document.write(
"executed");
</script></li>
117 <li>JavaScript1.5
<script language=
"JavaScript1.5">document.write(
"executed");
</script></li>
118 <li>JavaScript1.6
<script language=
"JavaScript1.6">document.write(
"executed");
</script></li>
119 <li>JavaScript1.7
<script language=
"JavaScript1.7">document.write(
"executed");
</script></li>
121 <h4>These scripts should not execute
</h4>
123 <li>one space
<script language=
" ">document.write(
"executed");
</script></li>
124 <li>vbscript
<script language=
"vbscript">document.write(
"executed");
</script></li>
125 <li>livescript1.1
<script language=
"livescript1.1">document.write(
"executed");
</script></li>
126 <li>JavaScript
1 <script language=
"JavaScript 1">document.write(
"executed");
</script></li>
127 <li>JavaScript
1.0 <script language=
"JavaScript 1.0">document.write(
"executed");
</script></li>
128 <li>JavaScript
1.1 <script language=
"JavaScript 1.1">document.write(
"executed");
</script></li>
129 <li>JavaScript
1.1.1 <script language=
"JavaScript 1.1.1">document.write(
"executed");
</script></li>
130 <li>JavaScript
1.2 <script language=
"JavaScript 1.2">document.write(
"executed");
</script></li>
131 <li>JavaScript
1.3 <script language=
"JavaScript 1.3">document.write(
"executed");
</script></li>
132 <li>JavaScript
1.4 <script language=
"JavaScript 1.4">document.write(
"executed");
</script></li>
133 <li>JavaScript
1.5 <script language=
"JavaScript 1.5">document.write(
"executed");
</script></li>
134 <li>JavaScript
1.6 <script language=
"JavaScript 1.6">document.write(
"executed");
</script></li>
135 <li>JavaScript
1.7 <script language=
"JavaScript 1.7">document.write(
"executed");
</script></li>
136 <li>JavaScript
1.8 <script language=
"JavaScript 1.8">document.write(
"executed");
</script></li>
137 <li>JavaScript
1.9 <script language=
"JavaScript 1.9">document.write(
"executed");
</script></li>
138 <li>JavaScript
2 <script language=
"JavaScript 2">document.write(
"executed");
</script></li>
139 <li>JavaScript
2.1 <script language=
"JavaScript 2.1">document.write(
"executed");
</script></li>
140 <li>JavaScript
10 <script language=
"JavaScript 10">document.write(
"executed");
</script></li>
141 <li>JavaScript
10.0 <script language=
"JavaScript 10.0">document.write(
"executed");
</script></li>
142 <li>_javascript
<script language=
"_javascript">document.write(
"executed");
</script></li>
143 <li>javascript_
<script language=
"javascript_">document.write(
"executed");
</script></li>
144 <li>javascript_1.0
<script language=
"javascript_1.0">document.write(
"executed");
</script></li>
145 <li>javascript
1.0 x
<script language=
"javascript 1.0 x">document.write(
"executed");
</script></li>
146 <li>JavaScript1
<script language=
"JavaScript1">document.write(
"executed");
</script></li>
147 <li>JavaScript1.8
<script language=
"JavaScript1.8">document.write(
"executed");
</script></li>
148 <li>JavaScript1.9
<script language=
"JavaScript1.9">document.write(
"executed");
</script></li>
149 <li>JavaScript1.4
.1 <script language=
"JavaScript1.4.1">document.write(
"executed");
</script></li>
150 <li>1.0 javascript
<script language=
"1.0 javascript">document.write(
"executed");
</script></li>
151 <li>' javascript '
<script language=
" javascript ">document.write(
"executed");
</script></li>
152 <li>' javascript1.1 '
<script language=
" javascript1.1 ">document.write(
"executed");
</script></li>
153 <li>'
javascript
'
<script language=
" javascript ">document.write(
"executed");
</script></li>
154 <li>' javascript
1.0 '
<script language=
" javascript 1.0 ">document.write(
"executed");
</script></li>
155 <li>' javascript
1.0 '
<script language=
" javascript 1.0 ">document.write(
"executed");
</script></li>
156 <li>jscript
1 <script language=
"jscript 1">document.write(
"executed");
</script></li>
157 <li>jscript
1.0 <script language=
"jscript 1.0">document.write(
"executed");
</script></li>
158 <li>ecmascript
1 <script language=
"ecmascript 1">document.write(
"executed");
</script></li>
159 <li>ecmascript
1.0 <script language=
"ecmascript 1.0">document.write(
"executed");
</script></li>
160 <li>livescript
1 <script language=
"livescript 1">document.write(
"executed");
</script></li>
161 <li>livescript
1.0 <script language=
"livescript 1.0">document.write(
"executed");
</script></li>
162 <li>' jscript
1.0 '
<script language=
" jscript 1.0 ">document.write(
"executed");
</script></li>
163 <li>disabled_javascript
<script language=
"disabled_javascript">document.write(
"executed");
</script></li>
164 <li>xxxjavascriptxxx
<script language=
"xxxjavascriptxxx">document.write(
"executed");
</script></li>
165 <li>bogus
<script language=
"bogus">document.write(
"executed");
</script></li>
168 <h3>Variations on combined type and language attributes of script tag
</h3>
169 <h4>These scripts should execute
</h4>
171 <li>empty string type,
"javascript" language
<script type=
"" language=
"javascript">document.write(
"executed");
</script></li>
172 <li>empty string language,
"text/javascript" type
<script type=
"text/javascript" language=
"">document.write(
"executed");
</script></li>
173 <li>"javascript" language,
"text/javascript" type
<script type=
"text/javascript" language=
"javascript">document
.write("executed");</script></li>
174 <li>"bogus" language,
"text/javascript" type
<script type=
"text/javascript" language=
"bogus">document.write(
"executed");
</script></li>
175 <li>"livescript" language,
"text/javascript" type
<script type=
"text/javascript" language=
"livescript">document.write(
"executed");
</script></li>
176 <li>"javascript1.2" language,
"text/javascript" type
<script type=
"text/javascript" language=
"javascript1.2">document
.write("executed");</script></li>
178 <h4>These scripts should not execute
</h4>
180 <li>"javascript" language,
"bogus" type
<script type=
"bogus" language=
"javascript">document.write(
"executed");
</script></li>
181 <li>empty string type,
"bogus" language
<script type=
"" language=
"bogus">document.write(
"executed");
</script></li>
182 <li>empty string language,
"bogus" type
<script type=
"bogus" language=
"">document.write(
"executed");
</script></li>