According to the documentation, Browser.Dom.getElement should return the scene, viewport, and element of the target, specified by the id argument, as getViewportOf does. It is, however, returning the scene and element of the document, as getViewport does. [1]
According to the documentation,
Browser.Dom.getElement
should return the scene, viewport, and element of the target, specified by theid
argument, asgetViewportOf
does. It is, however, returning the scene and element of the document, asgetViewport
does. [1]Is this intentional, or just a copy-paste error?
[1] https://github.com/elm/browser/blob/master/src/Elm/Kernel/Browser.js#L407