OSDN Git Service
(root)
/
sie
/
sie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff4f634
)
Fix a item method of the childNodes property
author
dhrname
<dhrname@users.sourceforge.jp>
Mon, 30 Jul 2012 12:34:04 +0000
(21:34 +0900)
committer
dhrname
<dhrname@users.sourceforge.jp>
Mon, 30 Jul 2012 12:34:04 +0000
(21:34 +0900)
org/w3c/core.js
patch
|
blob
|
history
diff --git
a/org/w3c/core.js
b/org/w3c/core.js
index
c870da7
..
a540f24
100644
(file)
--- 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で代用。