askonomm / htmt

A templating library with native AOT support for .NET projects.
9 stars 0 forks source link

`x:for` conflicts with generic value attribute `for` #17

Closed askonomm closed 1 month ago

askonomm commented 1 month ago

Reason being is that if you want to use a generic value attribute x:for (as in <label for="" /> you can't, because it conflicts with the ForAttributeParser. In general should probably avoid names that conflict with HTML attributes - or better yet, make the generic value attributes use some other attribute. Perhaps x:attr-{name} as in x:attr-for in this case.