OSDN Git Service

Version 0.6.123, remove xnode._nodeType.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 05_XNodeAttr.js
index a4669c8..cd96a45 100644 (file)
@@ -101,7 +101,7 @@ function X_Node_Attr_objToAttrText( obj ){
 Node.prototype.attr = function( nameOrObj /* v */ ){\r
        var attrs = this._attrs, newAttrs, f, k, elm, v;\r
        \r
-       if( this._xnodeType !== 1 ) return this;\r
+       if( !this._tag ) return this;\r
        \r
        if( nameOrObj && X.Type.isObject( nameOrObj ) ){\r
                attrs || ( attrs = this._attrs = {} );\r
@@ -138,21 +138,9 @@ Node.prototype.attr = function( nameOrObj /* v */ ){
                        case 'tag' :\r
                        case 'tagName' :\r
                                return this._tag;\r
-                       case 'nodeType' :\r
-                               return this._tag ? 1 : 3;\r
                        case 'style' :\r
                        case 'cssText' :\r
                                return this.cssText();\r
-                       case 'text' :\r
-                               return this.text();\r
-                       case 'html' :\r
-                       case 'innerHTML' :\r
-                               return this.html();\r
-                       case 'outerHTML' :\r
-                               X_Node_outerXNode = this;\r
-                               v = this.html();\r
-                               X_Node_outerXNode = null;\r
-                               return v;\r
 \r
                        case 'selected' :\r
                                // kquery.js : safariのバグ対策\r