<html class="a"> <head> <title>document.getElementsByClassName(): live updating</title> <script src="resources/common.js"></script> </head> <body class="a"> <p id="r">FAIL (script did not run)</p> <script> var elms = document.getElementsByClassName("a"); elms[1].className = ""; t(elms, [document.documentElement]); </script> </body> </html>