summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/linking/scripted/a.rel-getter-01.svg
blob: f4f1fdb4f3af9233b7121f828e47d2ccaae7a975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.rel getter</title>
  <metadata>
    <h:link rel="help" href="https://svgwg.org/svg2-draft/linking.html#InterfaceSVGAElement"/>
  </metadata>
  <a id="test" href="a" rel="noreferrer"></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.rel, "noreferrer");
       }, "Test anchor's rel getter");
    });
  ]]></script>
</svg>