closure-library
closure-library copied to clipboard
documentation for goog.dom.createDom is confusing about setting properties vs attributes
The documentation for goog.dom.createDom says it takes "a map of name-value pairs for attributes", but it doesn't actually set attributes. It calls goog.dom.setProperties(), which doesn't support custom attributes. The documentation for createDom does say "For passing properties, please see goog.dom.setProperties for more information."
I understood that to mean "createDom sets attributes, not properties. If you want to set properties you should use goog.dom.setProperties," which is pretty much the exact opposite of what's going on.