Merge colliding html and svg attr names into shared namespace.
Closed this issue · 3 comments
I would like to merge colliding html and svg attribute names into a shared definition.
Attrs like height
or href
exist in both html and svg so when we import both dsl._
and dsl.svg._
then this code a(href := "example.com")
causes a compiler error until we rename one of the attrs: import dsl.svg.{href => svgHref, _}
.
I would like to create a third attr definition file which contains all colliding attrs which could then be used in both svg and html tags.
Ideally I would like to do the same for tags, but thats where things get a little more complicated since they would also have to produce the correct element based on context and that would probably require some implicit conversion magic.
In this issue I would like to hear some feedback on the general idea before I go forth with implementing this.
Hey, that's an interesting issue! Sorry I'm not super responsive right now, I should be able to take a look at this in depth around next weekend.