私は今prototype.jsを学んでいます。何かがおかしいようです。たとえば、以下は firebug で実行したコード フラグメントです。URL はhttp://api.prototypejs.org/dom/Element/です。これは、ページにprototype.js があるためです。
var el2 = document.createElement('div');
var k=0;
for(var i in el2){ k++};
console.log(k);
結果は 262 で、非常に奇妙です。なぜなら、prototype.js のないページで同じコードを実行すると、結果は 195 になるからです。私の質問は、prototype.js が document.createElement メソッドにどのように影響するかです。プロトタイプ.js で document.createElement をクエリすると、document.createElement=function(){} のようなコードが見つかりません。
ありがとう!