Polymer camelCase attributes
问题 I'm writing a wrapper around a js library with Polymer components. Basically, I need to be able to assign attributes to a component, and forward them to an instance of a js object. The problem is that Polymer (or webcomponents in general?) forces attribute names to be lowercase. Declaring the element <some-element fooBar="baz"></some-element> Generic change listener attributeChanged: function(attrName, oldVal, newVal){ // attrName -> foobar, which is not a member of someInstance this