blob: ba0df5d7b89246007fff8f9aa5645bc96f08884c [file] [log] [blame]
fred.wang@free.fra33867f2014-06-07 08:10:43 +00001<!doctype html>
2<html>
3 <head>
4 <title>MathML script elements: removing children</title>
5
6 <style type="text/css">
7 div { border: 1px solid; margin: .5em; }
8 </style>
9 </head>
10
11 <body>
12
13 <!-- Test 1: remove an element at the first position in an <mroot>/<msqrt> element with various number of children. -->
14 <div id="test1">Test 1:
15 <math><msqrt></msqrt></math>
16 <math><msqrt><mn>1</mn></msqrt></math>
17 <math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
18 <math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
19 <math><mroot></mroot></math>
20 <math><mroot><mn>1</mn></mroot></math>
21 <math><mroot><mn>1</mn><mn>2</mn></mroot></math>
22 <math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
23 </div>
24
25 <!-- Test 2: remove an <mn> element at the last position in an <mroot>/<msqrt> element with various number of children. -->
26 <div id="test2">Test 2:
27 <math><msqrt><mn>1</mn></msqrt></math>
28 <math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
29 <math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
30 <math><mroot><mn>1</mn></mroot></math>
31 <math><mroot><mn>1</mn><mn>2</mn></mroot></math>
32 <math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
33 </div>
34
35 <!-- Test 3: remove an element at the second position in an <mroot>/<msqrt> element with various number of children. -->
36 <div id="test3">Test 3:
37 <math><msqrt><mn>1</mn></msqrt></math>
38 <math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
39 <math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
40 <math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></msqrt></math>
41 <math><mroot><mn>1</mn></mroot></math>
42 <math><mroot><mn>1</mn><mn>2</mn></mroot></math>
43 <math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
44 <math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></mroot></math>
45 </div>
46
47 <!-- Test 4: remove an element at the penultimate position in an <mroot>/<msqrt> element with various number of children. -->
48 <div id="test4">Test 4:
49 <math><msqrt><mn>1</mn></msqrt></math>
50 <math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
51 <math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
52 <math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></msqrt></math>
53 <math><mroot><mn>1</mn></mroot></math>
54 <math><mroot><mn>1</mn><mn>2</mn></mroot></math>
55 <math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
56 <math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></mroot></math>
57 </div>
58
59 </body>
60</html>