DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (b6d82b1a6b02)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>dynamic maction 2</title>
</head>

<body>

<p>
<math>
  <maction id="m1" actiontype="statusline">
    <mtext>__1__</mtext>
    <mtext>__2__</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m2" actiontype="statusline" selection="2">
    <mtext>__1__</mtext>
    <mtext>__2__</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m3" actiontype="statusline" selection="2">
    <mtext>__1__</mtext>
    <mtext>__2__</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m4" actiontype="statusline">
    <mtext id="m41">__1__</mtext>
    <mtext id="m42">__2__</mtext>
    <mtext id="m43">__3__</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m5" actiontype="statusline">
    <mtext>__1__</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m6" actiontype="statusline">
    <mtext id="m61">__1__</mtext>
    <mtext id="m62">__2__</mtext>
  </maction>
</math>
</p>

<p>
<math>
  <maction id="m7" actiontype="statusline">
    <mtext id="m71">__1__</mtext>
    <mtext id="m72">__2__</mtext>
  </maction>
</math>
</p>

<script>
function doTest() {
  document.getElementById("m1").setAttribute("selection", "2");
  document.getElementById("m2").removeAttribute("selection");
  document.getElementById("m3").setAttribute("actiontype", "toggle");

  var child41 = document.getElementById("m41");
  document.getElementById("m4").removeChild(child41);

  var child43 = document.getElementById("m43");
  document.getElementById("m5").appendChild(child43.cloneNode(true));

  var child61 = document.getElementById("m61");
  document.getElementById("m6").insertBefore(child43.cloneNode(true), child61);

  var child71 = document.getElementById("m71");
  document.getElementById("m7").replaceChild(child43.cloneNode(true), child71);

  document.documentElement.removeAttribute('class');
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>

</body>
</html>