Firefox 3 で「*.each is not a function」というエラー 2008-08-23-2 [Tips][Programming] Firefox 3 で SOBORAJA[2007-07-11-4] のギミックが動かなくなっていた。 「*.each is not a function」というエラーが出る。 prototype.js の問題ですね。 原因は、Firefox3 から getElementsByClassName() が返す型が変わったからだそうだ。 ということで、こうなっていたのを、 var elems = obj.getElementsByClassName("krss-items"); elems.each (... こんな感じに変更。 var elems = obj.getElementsByClassName("krss-items"); var
![Firefox 3 で「*.each is not a function」というエラー](https://cdn-ak-scissors.b.st-hatena.com/image/square/af37977ee866988286b95e74fff98500a190545c/height=288;version=1;width=512/https%3A%2F%2Fchalow.net%2Fimages%2Ftcl-logo-25.png)