wpt / svg / linking / scripted / a.type-getter-01.svg

Status: PASS | Duration: 47ms | Subtests: 2/2 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
SVGAElement.type getterPASS
Test anchor's type getter when type attribute missingPASS

/svg/linking/scripted/a.type-getter-01.svg

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:h="http://www.w3.org/1999/xhtml">
  <title>SVGAElement.type getter</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/linking.html#InterfaceSVGAElement"/>
  </metadata>
  <a id="test" href="a"></a>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>
  <script><![CDATA[
    test(function() {
      var a = document.getElementById("test");

      test(function() {
        assert_equals(a.type, "");
       }, "Test anchor's type getter when type attribute missing");
    });
  ]]></script>
</svg>