OSDN Git Service

Version 0.6.128, creanup commitUpdate().
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 05_XNodeAttr.js
index 20e915b..cd9a1ff 100644 (file)
@@ -180,6 +180,15 @@ Node.prototype.attr = function( nameOrObj /* v */ ){
                        case 'cssText' :\r
                                return this.cssText();\r
 \r
+                       case 'src' : // src は遷移して変化する, name も?\r
+                               if( this._tag !== 'IFRAME' ) break;\r
+                               if( this._newAttrs && X_Object_inObject( nameOrObj, this._newAttrs ) ) return this._newAttrs[ nameOrObj ];\r
+                               if( elm = X_UA_DOM.IE4 ? this._rawObject || X_Node__ie4getRawNode( this ) : this._rawObject ){\r
+                                       if( !attrs ) attrs = this._attrs = {};\r
+                                       return attrs[ nameOrObj ] = elm[ nameOrObj ]; // getAttribute( nameOrObj )?\r
+                               };\r
+                               break;\r
+                               \r
                        case 'selected' :\r
                                // kquery.js : safariのバグ対策\r
                                // if ($.browser.safari && key === "selected" && tmp) tmp.selectedIndex;\r