diff options
Diffstat (limited to 'LayoutTests/fast/dom/getElementsByClassName/006.html')
-rw-r--r-- | LayoutTests/fast/dom/getElementsByClassName/006.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/getElementsByClassName/006.html b/LayoutTests/fast/dom/getElementsByClassName/006.html new file mode 100644 index 0000000..89be60b --- /dev/null +++ b/LayoutTests/fast/dom/getElementsByClassName/006.html @@ -0,0 +1,17 @@ +<!doctype html> +<html> + <head> + <title>document.getElementsByClassName(): adding element with class</title> + <script src="resources/common.js"></script> + </head> + <body class="a"> + <p id="r">FAIL (script did not run)</p> + <script> + var collection = document.getElementsByClassName("a"), + ele = document.createElement("foo"); + ele.setAttribute("class", "a"); + document.body.appendChild(ele) + t(collection, [document.body, ele]) + </script> + </body> +</html> |