WebReflection / heresy

React-like Custom Elements via V1 API builtin extends.
https://medium.com/@WebReflection/any-holy-grail-for-web-components-c3d4973f3f3f
ISC License
276 stars 16 forks source link

Simplifying the attribute dot notation #20

Closed thipages closed 4 years ago

thipages commented 4 years ago

Hi, in order to have homogeneous attributes naming (without dots), is it possible to add a rule saying that mappedAttributes behave as former dotted attributes, others as DOM attributes?

WebReflection commented 4 years ago

those are two documented different kind of behavior, and you shouldn't use both style, just the standard way, and used mappedAttributes only for special cases.

thipages commented 4 years ago

these are lighterhtml behaviours, heresy may behave a bit different. Anyway need to get real use case first.

WebReflection commented 4 years ago

lighterhtml needs better documentation for this, but the feature was designed to satisty heresy use case.

You don't need to use both cases, and mappedAttributes and observedAttributes are two different things, and it won't change 'cause these are meant to be two different things.

thipages commented 4 years ago

Thank you