Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/html/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
<A HREF="../testdata/test.gif" id="foo" NAME="anchor1" ALT="this is a test of the image
attribute">Hi</A>
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
is($("foo").name, "anchor1", "accessing an anchor name should work, and not crash either!")
</script>
</pre>
</body>
</html>