Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Type of getElementById? #16

Closed
Closed
@sharkdp

Description

@sharkdp

Currently, getElementById is defined in the module DOM.Node.NonDocumentTypeChildNode with the following type:

getElementById :: forall eff. ElementId -> NonDocumentTypeChildNode -> Eff (dom :: DOM | eff) (Nullable Element)

Maybe I am misunderstanding something, but I don't think getElementById works on a single node level.. so I would rather expect this to be in DOM.Node.Document and to work on Document instead of NonDocumentTypeChildNode:

getElementById :: forall eff. ElementId -> Document -> Eff (dom :: DOM | eff) (Nullable Element)

See also: https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions