005.html revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1<!doctype html> 2<html class="a"> 3 <head> 4 <title>document.getElementsByClassName(): changing classes</title> 5 <script src="resources/common.js"></script> 6 </head> 7 <body class="a"> 8 <p id="r">FAIL (script did not run)</p> 9 <script> 10 var collection = document.getElementsByClassName("a") 11 document.body.removeAttribute("class") 12 t(collection, [document.documentElement]) 13 </script> 14 </body> 15</html> 16