layout/reftests/bugs/414123.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/414123.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1.6 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.7 +<head>
     1.8 +  <title>Testcase for bug 414123</title>
     1.9 +<script>
    1.10 +function boom() {
    1.11 +  var t = document.createTextNode('M')
    1.12 +  document.getElementById('mi1').appendChild(t);
    1.13 +
    1.14 +  var mi = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mi");
    1.15 +  var mn = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mn");
    1.16 +  var msup = document.createElementNS("http://www.w3.org/1998/Math/MathML", "msup");
    1.17 +  mi.appendChild(document.createTextNode('M'));
    1.18 +  mn.appendChild(document.createTextNode('2'));
    1.19 +  msup.appendChild(mi);
    1.20 +  msup.appendChild(mn);
    1.21 +  document.getElementById('m').appendChild(msup);
    1.22 +}
    1.23 +</script>
    1.24 +</head>
    1.25 +<body onload="boom()">
    1.26 +
    1.27 +<math xmlns="http://www.w3.org/1998/Math/MathML">
    1.28 +     <msup>
    1.29 +      <mi id="mi1"></mi>
    1.30 +      <mn>2</mn>
    1.31 +     </msup>
    1.32 +</math>
    1.33 +
    1.34 +<math xmlns="http://www.w3.org/1998/Math/MathML">
    1.35 +     <msup>
    1.36 +      <mi>M</mi>
    1.37 +      <mn>2</mn>
    1.38 +     </msup>
    1.39 +</math>
    1.40 +
    1.41 +<math id="m" xmlns="http://www.w3.org/1998/Math/MathML"></math>
    1.42 +
    1.43 +</body>
    1.44 +</html> 
    1.45 +

mercurial