|
1 <?xml version="1.0"?> |
|
2 |
|
3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
|
4 |
|
5 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();" class="reftest-wait"> |
|
6 <script type="text/javascript"> |
|
7 // <![CDATA[ |
|
8 |
|
9 var HTML_NS = "http://www.w3.org/1999/xhtml"; |
|
10 var MATHML_NS = "http://www.w3.org/1998/Math/MathML"; |
|
11 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; |
|
12 |
|
13 function boom() |
|
14 { |
|
15 var listbox = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "listbox"); |
|
16 var listitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "listitem"); |
|
17 listbox.appendChild(listitem); |
|
18 document.documentElement.appendChild(listbox); |
|
19 var hbox = document.createElementNS(XUL_NS, "hbox"); |
|
20 listbox.appendChild(hbox); |
|
21 var mphantom = document.createElementNS(MATHML_NS, 'mphantom'); |
|
22 listbox.appendChild(mphantom); |
|
23 var wax = document.createElementNS(MATHML_NS, 'wax'); |
|
24 hbox.appendChild(wax); |
|
25 var msub = document.createElementNS(MATHML_NS, 'msub'); |
|
26 wax.appendChild(msub); |
|
27 var merror = document.createElementNS(MATHML_NS, 'merror'); |
|
28 wax.appendChild(merror); |
|
29 var span = document.createElementNS(HTML_NS, 'span'); |
|
30 mphantom.appendChild(span); |
|
31 var vbox = document.createElementNS(XUL_NS, 'vbox'); |
|
32 span.appendChild(vbox); |
|
33 |
|
34 setTimeout(boom2, 0); |
|
35 |
|
36 function boom2() |
|
37 { |
|
38 var munderover = document.createElementNS(MATHML_NS, 'munderover'); |
|
39 msub.appendChild(munderover); |
|
40 var mtext = document.createElementNS(MATHML_NS, 'mtext'); |
|
41 span.appendChild(mtext); |
|
42 |
|
43 document.documentElement.removeAttribute("class"); |
|
44 } |
|
45 } |
|
46 |
|
47 // ]]> |
|
48 </script> |
|
49 </window> |