From: dhrname Date: Mon, 30 Jul 2012 12:34:04 +0000 (+0900) Subject: Fix a item method of the childNodes property X-Git-Tag: v16beta~489 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e07615beba79734667a40bf804226908e5939abb;p=sie%2Fsie.git Fix a item method of the childNodes property --- diff --git a/org/w3c/core.js b/org/w3c/core.js index c870da7..a540f24 100644 --- a/org/w3c/core.js +++ b/org/w3c/core.js @@ -399,6 +399,9 @@ Node.prototype = { Array.prototype.item = function( /*long*/ index) { + if (!this[index]) { + return null; + } return (this[index]); }; /*ノードリストはArrayで代用。