Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
Test from Adam Guthrie.
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<div style="display: none" id="lengthtest">
</div>
<pre id="test">
<script type="text/javascript">
var foo = document.createElement("div");
foo.appendChild(document.createElement("div"));
var children = foo.getElementsByTagName("div");
is(children.length, 1, "After appending a child div to a div, div.length should be 1.");
</script>
</pre>
</body>
</html>