aurelia / template-lint

Sanity check of Aurelia-flavor template HTML
Apache License 2.0
56 stars 17 forks source link

Warn when assigning custom attribute via interpolation #147

Open MeirionHughes opened 7 years ago

MeirionHughes commented 7 years ago
<div something="${foo}"></div>

should raise an issue (not supported)

atsu85 commented 7 years ago

I guess if tag has also as-element attribute containing valid custom element tag name, then it would be ok. For example: <div something="${foo}" as-element="my-custom-element"></div>

MeirionHughes commented 7 years ago

Good point. Also I guess would need to rule out all custom-attribute handlers too.