Skip to content

NodeListOf#item should return TNode | null #43

Closed
@Andyuu

Description

@Andyuu

Regarding this issue: microsoft/TypeScript-DOM-lib-generator#1268

Real return type: https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item

It would be much better for item() in NodeListOf to match behaviour with at() for arrays. The small difference is that it can return null instead of undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions