blob: 5185b3578e373078b4cbdaad692fb972a0729475 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>MathML roots: adding children</title>
<style type="text/css">
div { border: 1px solid; margin: .5em; }
</style>
</head>
<body>
<!-- Test 1: insert in normal and reverse order. -->
<div id="test1">Test 1:
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn><mn>6</mn><mn>7</mn></mroot></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn><mn>6</mn><mn>7</mn></msqrt></math>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn><mn>6</mn><mn>7</mn></mroot></math>
<math><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn><mn>6</mn><mn>7</mn></msqrt></math>
</div>
<!-- Test 2: insert an <mn> element at the first 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><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 3: insert an <mn> element at the last 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: insert an <mn> element at the second position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test4">Test 4:
<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><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></msqrt></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>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></mroot></math>
</div>
<!-- Test 5: insert an <mn> element at the penultimate position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test5">Test 5:
<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><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></msqrt></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>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></mroot></math>
</div>
<!-- Test 6: insert an <mn> element at the third position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test6">Test 6:
<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><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></msqrt></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>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></mroot></math>
</div>
<!-- Test 7: insert an <mn> element at the antipenultimate position in an <mroot>/<msqrt> element with various number of children. -->
<div id="test7">Test 7:
<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><msqrt><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></msqrt></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>
<math><mroot><mn>1</mn><mn>2</mn><mn>3</mn><mn>4</mn><mn>5</mn></mroot></math>
</div>
</body>
</html>