elm-graphics
elm-graphics copied to clipboard
Possibility of Element.fromHtml : Int -> Int -> Html Never -> Element
It is clear that the former Html.toElement : Int -> Int -> Html -> Element
cannot exist anymore, since the Html
type comes with the possibility of attached event handlers that the Element
implementation is not anymore prepared to deal with. But since on the other hand it is now possible to express in the form of Html
types that definitely no event handlers are attached at all, I want to at least raise here the possibility of having
Html.toElement : Int -> Int -> Html Never -> Element
or
Element.fromHtml : Int -> Int -> Html Never -> Element
That could alleviate some pains people have from the elm-graphics
changes, since at least static html would be embeddable in Element
s and Form
s for free-form positioning etc.