Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
2 <head>
3 <title>dynamic maction 3</title>
4 </head>
6 <body>
8 <p>
9 <math>
10 <maction id="m1" actiontype="toggle">
11 <mtext>--1--</mtext>
12 <mtext>--2--</mtext>
13 </maction>
14 </math>
15 </p>
17 <p>
18 <math>
19 <maction id="m2" actiontype="toggle" selection="5">
20 <mtext>--1--</mtext>
21 <mtext>--2--</mtext>
22 </maction>
23 </math>
24 </p>
26 <p>
27 <math>
28 <maction id="m3" actiontype="toggle" selection="5">
29 <mtext>--1--</mtext>
30 <mtext>--2--</mtext>
31 </maction>
32 </math>
33 </p>
35 <p>
36 <math>
37 <maction id="m4" actiontype="toggle">
38 <mtext>--1--</mtext>
39 <mtext>--2--</mtext>
40 </maction>
41 </math>
42 </p>
44 <p>
45 <math>
46 <maction id="m5" actiontype="toggle" selection="5">
47 <mtext>--1--</mtext>
48 <mtext>--2--</mtext>
49 </maction>
50 </math>
51 </p>
53 <p>
54 <math>
55 <maction id="m6" actiontype="toggle">
56 <mtext>--1--</mtext>
57 <mtext>--2--</mtext>
58 </maction>
59 </math>
60 </p>
62 <p>
63 <math>
64 <maction id="m7">
65 <mtext>--1--</mtext>
66 <mtext>--2--</mtext>
67 </maction>
68 </math>
69 </p>
71 <p>
72 <math>
73 <maction id="m8" actiontype="unknown-action-type">
74 <mtext>--1--</mtext>
75 <mtext>--2--</mtext>
76 </maction>
77 </math>
78 </p>
80 <p>
81 <math>
82 <maction id="m9" selection="5">
83 <mtext>--1--</mtext>
84 <mtext>--2--</mtext>
85 </maction>
86 </math>
87 </p>
89 <p>
90 <math>
91 <maction id="m10" actiontype="unknown-action-type" selection="5">
92 <mtext>--1--</mtext>
93 <mtext>--2--</mtext>
94 </maction>
95 </math>
96 </p>
98 <p>
99 <math>
100 <maction id="m11" actiontype="statusline">
101 <mtext>--1--</mtext>
102 <mtext>--2--</mtext>
103 </maction>
104 </math>
105 </p>
107 <p>
108 <math>
109 <maction id="m12" actiontype="statusline" selection="5">
110 <mtext>--1--</mtext>
111 <mtext>--2--</mtext>
112 </maction>
113 </math>
114 </p>
116 <script>
117 function doTest() {
118 document.getElementById("m1").setAttribute("selection", "5");
119 document.getElementById("m2").setAttribute("selection", "1");
120 document.getElementById("m3").setAttribute("actiontype", "statusline");
121 document.getElementById("m4").removeAttribute("actiontype");
122 document.getElementById("m5").setAttribute("actiontype", "unknown-action-type");
123 document.getElementById("m6").setAttribute("actiontype", "unknown-action-type");
124 document.getElementById("m7").setAttribute("actiontype", "toggle");
125 document.getElementById("m8").setAttribute("actiontype", "toggle");
126 document.getElementById("m9").setAttribute("actiontype", "statusline");
127 document.getElementById("m10").setAttribute("actiontype", "statusline");
128 document.getElementById("m11").setAttribute("selection", "5");
129 document.getElementById("m12").setAttribute("actiontype", "toggle");
131 document.documentElement.removeAttribute('class');
132 }
133 window.addEventListener("MozReftestInvalidate", doTest, false);
134 </script>
136 </body>
137 </html>