Now an attribute of a document element can be set from the attributes array if the second parameter is not a string or a number (before it was only functions).
Optimizations.
min version minified 1:1 to maintain performance