Skip to content

Spread operator breaks on HTML Collection or NodeList with tslib@2.3.0 #153

Closed
@utsavchatterjee

Description

@utsavchatterjee

Let htmlCollection be an HTMLCollection {} such that,

Object.keys(htmlCollection) is [‘0’, ‘1’, ‘2’]

Object.values(htmlCollection) is [ HTMLDivElement {}, HTMLDivElement {}, HTMLDivElement {} ]

Using tslib <= 2.2.0

[ …htmlCollection ] gives [ HTMLDivElement {}, HTMLDivElement {}, HTMLDivElement {} ]

Using tslib 2.3.0

[ …htmlCollection ] gives [ HTMLCollection {} ], where HTMLCollection {} is the same as htmlCollection

Similar behaviour is observed for NodeList {}.

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