You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document native dom properties that are problematic to override #123
HTMLElement.properties is defined as read-only but configurable so a custom element need to define properties in its prototype if it wants to use it. (breaks on firefox)
I noticed this when attempting to template-bind a custom element that implemented "title" or "id" as a published property.
<polymer-elementname="greetings-list" attributes="list"><template><templaterepeat="{{g in list}}"><paper-cardtitle="{{g.text}}"></paper-card></template>
...
If element paper-card publishes "title" as an attribute, then the above will not work (the string "{{g.text}}" gets passed in instead of the g.text value).
Renaming title into titlex makes it work.
Using [[g.text]] makes it work too.
It sounds like if someone adds more attributes/properties to the standards, we risk ruining existing components. Namespacing comes to mind, but is of course less than desirable.
e.g. appendChild, removeChild, and various native properties...