4 <title>Test for anchor cache invalidation
</title>
5 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
10 <div id=
"content" style=
"display: none">
11 <a id=
"x" href=
"http://example.com"></a>
14 <script type=
"application/javascript">
16 is($(
"x").href,
"http://example.com/");
17 is($(
"x").host,
"example.com");
19 $(
"x").href =
"http://www.example.com";
21 is($(
"x").href,
"http://www.example.com/");
22 is($(
"x").host,
"www.example.com");
24 $(
"x").setAttribute(
"href",
"http://www.example.net/");
25 is($(
"x").host,
"www.example.net");