dynamic-text-07.svg 691 B

123456789101112131415161718192021222324
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="m();">
  6. <title>Testcase to check whitespace handling</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=717870 -->
  8. <text id="t" x="10" y="50" font-size="50">A </text>
  9. <script>
  10. function m()
  11. {
  12. // Force frame construction
  13. document.documentElement.getBoundingClientRect();
  14. // A dynamic change
  15. document.getElementById("t").appendChild(document.createTextNode("B"));
  16. document.documentElement.removeAttribute("class");
  17. }
  18. </script>
  19. </svg>