diff options
author | wei <> | 2006-01-09 03:40:59 +0000 |
---|---|---|
committer | wei <> | 2006-01-09 03:40:59 +0000 |
commit | 9c9a2d731fea9679f65904a3a6b72dd78b4253a4 (patch) | |
tree | 1d81a12a7a79e74e98218d01c6278a81f0996f5d /framework/Web/Javascripts/tests/getElementsByClassName.html | |
parent | 10420d2bcde1a7437b58175f417170b2d6d93e50 (diff) |
Update library
Diffstat (limited to 'framework/Web/Javascripts/tests/getElementsByClassName.html')
-rw-r--r-- | framework/Web/Javascripts/tests/getElementsByClassName.html | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/framework/Web/Javascripts/tests/getElementsByClassName.html b/framework/Web/Javascripts/tests/getElementsByClassName.html deleted file mode 100644 index b764aac4..00000000 --- a/framework/Web/Javascripts/tests/getElementsByClassName.html +++ /dev/null @@ -1,28 +0,0 @@ -<html>
-<head>
- <script type="text/javascript" src="../../base.js"></script>
- <script type="text/javascript" src="../../dom.js"></script>
- <script type="text/javascript">
- function test() {
- var elements = document.getElementsByClassName($('class-name').value);
- for (var i = 0; i < elements.length; i++) elements[i] = elements[i].id;
- alert(elements.join(', '));
- return false;
- }
- </script>
-</head>
-<body>
- <div id="a" class="foo">a: foo</div>
- <div id="b" class="foo bar">b: foo, bar</div>
- <div id="c" class="bar">c: bar</div>
- <div id="d" class="bar baz">d: bar, baz</div>
- <div id="e" class="baz">e: baz</div>
- <div id="f" class="foo baz">f: foo, baz</div>
-
- <fieldset>
- <label for="class-name">Class name:</label>
- <input id="class-name" type="text" value="foo" />
- <button onclick="return test()">Find</button>
- </fieldset>
-</body>
-</html>
|