attrMap property {Object<String,String | Boolean | function()>} source Object<String,String | Boolean | function()> A mapping of special attributes to their JS property. For example: "class" : "className" means get or set element.className. And: "checked" : true means set element.checked = true. If the attribute name is not found, it's assumed to use element.getAttribute and element.setAttribute.
A mapping of special attributes to their JS property. For example:
means get or set
element.className
. And:means set
element.checked = true
.If the attribute name is not found, it's assumed to use
element.getAttribute
andelement.setAttribute
.