<!doctype html> <html class="a"> <head> <title>element.getElementsByClassName(): simple</title> <script src="resources/common.js"></script> </head> <body class="a"> <p id="r">FAIL (script did not run)</p> <script> t(document.body.getElementsByClassName("a"), []) </script> </body> </html>