2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / anchor-toString.html
bloba8b0ca795465224e381d56d1021679469eb9dddc
1 <a href="/sometestfile.html" id="anchor">
2 A link!
3 </a>
4 <br>
5 <br>
6 <script>
8 if (window.layoutTestController)
9 layoutTestController.dumpAsText();
11 var anchor = document.getElementById("anchor");
12 document.write("Writing just the anchor object - " + anchor);
14 var anchorString = String(anchor);
15 document.write("<br><br>Writing the result of the String(anchor) - " + anchorString);
17 var anchorToString = anchor.toString();
18 document.write("<br><br>Writing the result of the anchor's toString() method - " + anchorToString);
20 </script>