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
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