samccone / twinkie

A polymer(1)&&(2) template parser + interface printer
Apache License 2.0
5 stars 5 forks source link

support on-* template checks #1

Closed samccone closed 6 years ago

samccone commented 6 years ago

Polymer's template system takes any attribute starting with on- (e.g. on-eventname="method") on elements in the template and adds an event listener that calls method on the host for the event named eventname. There is no whitelist of event names you can use here, so the value of any on-* attribute should be considered a method name on the host element for the template.

joryphillips commented 6 years ago

+1