diff options
Diffstat (limited to 'LayoutTests/fast/dom/getElementsByClassName/005.html')
-rw-r--r-- | LayoutTests/fast/dom/getElementsByClassName/005.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/getElementsByClassName/005.html b/LayoutTests/fast/dom/getElementsByClassName/005.html new file mode 100644 index 0000000..5a609db --- /dev/null +++ b/LayoutTests/fast/dom/getElementsByClassName/005.html @@ -0,0 +1,15 @@ +<!doctype html> +<html class="a"> + <head> + <title>document.getElementsByClassName(): changing classes</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") + document.body.removeAttribute("class") + t(collection, [document.documentElement]) + </script> + </body> +</html> |