elm / browser

Create Elm programs that run in browsers!
https://package.elm-lang.org/packages/elm/browser/latest/
BSD 3-Clause "New" or "Revised" License
313 stars 64 forks source link

`getElement` returning document's scene instead of that of the target? #86

Open uebayasi opened 5 years ago

uebayasi commented 5 years ago

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]

Is this intentional, or just a copy-paste error?

[1] https://github.com/elm/browser/blob/master/src/Elm/Kernel/Browser.js#L407