Polymer/old-docs-site

Add note for automatic capitalization detection of attribute bindings

Open

#2,490 opened on Mar 7, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)HTML (1,013 stars) (2,482 forks)batch import
good first issue

Description

In https://github.com/Polymer/polymer/pull/5125 we are fixing bindings to HTML attributes that have capitalization. The resulting change is the following:

Rather than the broken viewBox$="[[binding]]", Polymer will now automatically set an attribute when encountering viewBox="[[binding]]". This will only work if the attribute maintains capitalization. This is only the case for existing attributes, which mostly live in the SVG namespace: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute

This clarifying note should probably be added to https://www.polymer-project.org/2.0/docs/devguide/data-binding#attribute-binding

Contributor guide