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

content / test / data / accessibility / html / svg-and-math-elements.html [blame]

<!--
@AURALINUX-ALLOW:class:*
@AURALINUX-ALLOW:tag:*
@BLINK-ALLOW:className*
@BLINK-ALLOW:htmlTag*
@WAIT-FOR:Done
-->
<!doctype>
<html>
<body>
  <div id="svg" class="svg-container">
    <svg aria-label="original" xmlns="http://www.w3.org/2000/svg"></svg>
  </div>
  <div id="math" class="math-container">
    <math aria-label="original" xmlns="http://www.w3.org/1998/Math/MathML"></math>
  </div>
  <script>
    ["svg", "math"].forEach(tagName => {
      let div = document.getElementById(tagName);
      // HTML namespace.
      let child = document.createElement(tagName);
      child.setAttribute("class", "html-namespace");
      child.setAttribute("aria-label", "created");
      div.appendChild(child);
      // Custom namespace.
      let custom = document.createElementNS("https://example.com/namespace", tagName);
      custom.setAttribute("class", "custom-namespace");
      custom.setAttribute("aria-label", "created");
      div.appendChild(custom);
    });
    document.body.appendChild(document.createTextNode("Done"));
  </script>
</body>
</html>