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