OSDN Git Service

Version 0.6.37, X.Dom.Anime removed.
[pettanr/clientJs.git] / 0.6.x / js / dom / 11_XDomNode.js
index f544a3c..332a005 100644 (file)
@@ -248,7 +248,7 @@ Node._systemNode = null;// = Node._chashe[ ? ]
 \r
 Node._reserveRemoval = [];\r
 \r
-if( !document.getElementById && document.all ){\r
+if( X.Dom.DOM_IE4 ){\r
        Node.prototype._ie4getRawNode = function(){\r
                var elm = this._rawNode;\r
                return elm ||\r
@@ -351,10 +351,10 @@ Node.prototype.append = function( v ){
                        if( v._xnodeType !== 1 && v._xnodeType !== 3 ) return this;\r
                        // 親の xnodes から v を消す\r
                        if( v.parent ){\r
-                               //if( document.getElementById ){\r
+                               //if( X.Dom.DOM_W3C ){\r
                                //      v.parent._xnodes.splice( v.parent._xnodes.indexOf( v ), 1 );\r
                                //} else\r
-                               //if( document.all ){\r
+                               //if( X.Dom.DOM_IE4 ){\r
                                        v.remove();\r
                                //} else {\r
                                        \r
@@ -415,10 +415,10 @@ Node.prototype.appendAt = function( start, v ){
                        if( v._xnodeType !== 1 && v._xnodeType !== 3 ) return this;\r
                        // 親の xnodes から v を消す\r
                        if( v.parent ){\r
-                               //if( document.getElementById ){\r
+                               //if( X.Dom.DOM_W3C ){\r
                                //      v.parent._xnodes.splice( v.parent._xnodes.indexOf( v ), 1 );\r
                                //} else\r
-                               //if( document.all ){\r
+                               //if( X.Dom.DOM_IE4 ){\r
                                        v.remove();\r
                                //} else {\r
                                        \r
@@ -848,7 +848,7 @@ Node.prototype._startUpdate = function(){
 };\r
 \r
 Node.prototype._commitUpdate =\r
-       document.getElementById ?\r
+       X.Dom.DOM_W3C ?\r
                ( function( parentElement, nextElement ){\r
                        var elm = this._rawNode,\r
                                xnodes, l, i, frg, next, k, v;\r
@@ -891,7 +891,7 @@ Node.prototype._commitUpdate =
                        };\r
                        return elm;\r
                }) :\r
-       document.all ? \r
+       X.Dom.DOM_IE4 ? \r
                ( function( parentElement, prevElement ){\r
                        var elm    = this._rawNode || this._ie4getRawNode(),\r
                                xnodes, l, i, html, text, prev;\r
@@ -939,7 +939,7 @@ Node.prototype._commitUpdate =
                (function(){});\r
 \r
 Node.prototype._updateRawNode =\r
-       document.getElementById ?\r
+       X.Dom.DOM_W3C ?\r
                ( function( elm ){\r
                        var attrs, rename, k, v;\r
 \r
@@ -1009,7 +1009,7 @@ Node.prototype._updateRawNode =
                        \r
                        delete this._dirty;\r
                }) :\r
-       document.all ? \r
+       X.Dom.DOM_IE4 ? \r
                ( function( elm ){\r
                        var attrs, rename, k, v;\r
 \r
@@ -1079,7 +1079,7 @@ Node.prototype._updateRawNode =
  * document.createElement of ie4 is only for OPTION & IMAGE.\r
  */\r
 Node.prototype._actualCreate =\r
-       document.getElementById ? (function( isChild ){\r
+       X.Dom.DOM_W3C ? (function( isChild ){\r
                var elm = this._rawNode,\r
                        xnodes, frg, i, l;\r
                \r
@@ -1118,7 +1118,7 @@ Node.prototype._actualCreate =
                \r
                return elm;\r
        }) :\r
-       document.all ? (function( isChild ){\r
+       X.Dom.DOM_IE4 ? (function( isChild ){\r
                var uid = this._uid,\r
                        html, xnodes, n, i, l;\r
                \r
@@ -1163,7 +1163,7 @@ Node.prototype._actualCreate =
        (function(){});\r
 \r
 Node.prototype._afterActualCreate =\r
-       document.getElementById ? (function(){\r
+       X.Dom.DOM_W3C ? (function(){\r
                var elm = this._rawNode, xnodes, l, attrs, k, i;\r
                \r
                this._root  = this.parent._root;\r
@@ -1210,7 +1210,7 @@ Node.prototype._afterActualCreate =
                \r
                this._restoreEvent();// イベントの復帰\r
        }) :\r
-       document.all ? (function(){\r
+       X.Dom.DOM_IE4 ? (function(){\r
                var xnodes, i;\r
                this._root = this.parent._root;\r
                \r
@@ -1231,7 +1231,7 @@ Node.prototype._afterActualCreate =
        (function(){});\r
 \r
 Node.prototype._actualRemove =\r
-       document.getElementById ?\r
+       X.Dom.DOM_W3C ?\r
                ( function( isChild ){\r
                        var xnodes = this._xnodes,\r
                                elm    = this._rawNode,\r
@@ -1248,7 +1248,7 @@ Node.prototype._actualRemove =
                        // elm.parentNode.tagName for ie7\r
                        !isChild && elm.parentNode && elm.parentNode.tagName && elm.parentNode.removeChild( elm );\r
                }) :\r
-       document.all ?\r
+       X.Dom.DOM_IE4 ?\r
                ( function( isChild ){\r
                        var xnodes = this._xnodes,\r
                                elm    = this._rawNode || this._ie4getRawNode(),\r