<!DOCTYPE html>
<html>
<body onload="runTest()">
  <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=94650 -->
  <div>PASS: did not crash.</div>
  <svg id="svg" xmlns="http://www.w3.org/2000/svg">
    <text id="text"></text>
  </svg>

  <script>
    if (window.testRunner)
      testRunner.dumpAsText();

    function runTest() {
      document.getElementById('svg').systemLanguage.initialize("X");
      document.getElementById('text').systemLanguage.clear();
    }
  </script>
</body>
</html>
