- switch ( name )\r
- {\r
- case 'class' :\r
- return this.$.className.length > 0;\r
- case 'checked' :\r
- return !!this.$.checked;\r
- case 'value' :\r
- var type = this.getAttribute( 'type' );\r
- return type == 'checkbox' || type == 'radio' ? this.$.value != 'on' : this.$.value;\r
- }\r
- }\r
+ return function( name )\r
+ {\r
+ var $attr = this.$.attributes.getNamedItem( name );\r
+\r
+ if ( this.getName() == 'input' )\r
+ {\r
+ switch ( name )\r
+ {\r
+ case 'class' :\r
+ return this.$.className.length > 0;\r
+ case 'checked' :\r
+ return !!this.$.checked;\r
+ case 'value' :\r
+ var type = this.getAttribute( 'type' );\r
+ return type == 'checkbox' || type == 'radio' ? this.$.value != 'on' : this.$.value;\r
+ }\r
+ }\r