blob: ba0df5d7b89246007fff8f9aa5645bc96f08884c [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>MathML script elements: removing children</title>
<style type="text/css">
div { border: 1px solid; margin: .5em; }
</style>
</head>
<body>
<!-- Test 1: remove an element at the first position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test1">Test 1:
<math><msqrt></msqrt></math>
<math><msqrt><mn>1</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
<math><mroot></mroot></math>
<math><mroot><mn>1</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
</div>
<!-- Test 2: remove an <mn> element at the last position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test2">Test 2:
<math><msqrt><mn>1</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
<math><mroot><mn>1</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
</div>
<!-- Test 3: remove an element at the second position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test3">Test 3:
<math><msqrt><mn>1</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></msqrt></math>
<math><mroot><mn>1</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></mroot></math>
</div>
<!-- Test 4: remove an element at the penultimate position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test4">Test 4:
<math><msqrt><mn>1</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn></msqrt></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></msqrt></math>
<math><mroot><mn>1</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn></mroot></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn></mroot></math>
</div>
</body>
</html>