Would it be a good idea to allow attrToProp to accept a function? That way as a user I can transform the needed attributes. I'm mainly asking this because the hyperscript-attribute-to-property dependency is missing basic attributes like srcset & seems unmaintained. Secondly it does not include SVG attributes like stroke-linecap which in my case are used directly in the templating.
Would it be a good idea to allow
attrToProp
to accept a function? That way as a user I can transform the needed attributes. I'm mainly asking this because thehyperscript-attribute-to-property
dependency is missing basic attributes likesrcset
& seems unmaintained. Secondly it does not include SVG attributes likestroke-linecap
which in my case are used directly in the templating.