OSDN Git Service

Version 0.6.220, Fix the bug of X.HTMLParser.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 05_XNodeAttr.js
index 6dcd5c7..579f286 100644 (file)
@@ -190,7 +190,7 @@ function X_Node_attr( nameOrObj /* v */ ){
                };\r
                return this;\r
        } else\r
-       if( typeof nameOrObj === 'string' ){\r
+       if( X_Type_isString( nameOrObj ) ){\r
                // getter\r
                switch( nameOrObj ){\r
                        case 'id' :\r