5 https://bugzilla.mozilla.org/show_bug.cgi?id=959190
9 <title>Test for Bug
959190</title>
10 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
14 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=959190">Mozilla Bug
959190</a>
16 <div id=
"content" style=
"display: none">
17 <iframe name=
"x" id=
"x"></iframe>
18 <iframe name=
"y" id=
"y"></iframe>
22 <a id=
"link" href=
"http://www.example.com:8080">foobar
</a>
23 <area id=
"area" href=
"http://www.example.com:8080" />
24 <script type=
"application/javascript">
26 var url = new URL(
"http://www.example.com:8080");
27 is(url +
"",
"http://www.example.com:8080/",
"URL stringify");
29 var link = document.getElementById(
"link");
30 is(link +
"",
"http://www.example.com:8080/",
"Anchor stringify");
32 var area = document.getElementById(
"area");
33 is(area +
"",
"http://www.example.com:8080/",
"Area stringify");
35 is((location +
"").indexOf(`${location.origin}/tests/dom/url/tests/test_urlutils_stringify.html`),
0,
"Location stringify");