com-lihaoyi / scalatags

ScalaTags is a small XML/HTML construction library for Scala.
https://com-lihaoyi.github.io/scalatags/
MIT License
757 stars 117 forks source link

More specific Frag type for typed tags #193

Closed ddworak closed 4 years ago

ddworak commented 4 years ago

I've tried to write an API which would only accept objects which render to standalone dom.Elements, yet none of the JsDom tags conformed to expected Frag[dom.Element, dom.Element] type. This seems to be fixed by the proposed change. Further simplifications may be possible, as +FragT in generic.TypedTag becomes pretty obsolete then. I didn't push too far though and settled for a more compatible change for now.