<!doctype html> <html class="a"> <head> <title>document.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.getElementsByClassName("\ta\n"), [document.documentElement, document.body]) </script> </body> </html>