Skip to content

document.createNodeIterator signature breaks compatibility with IE #27393

Closed
@alenaksu

Description

@alenaksu

TypeScript Version: 3.1.1

Search Terms: createNodeIterator IE Internet Explorer

Code

document.createNodeIterator(
    rootElement, 
    NodeFilter.SHOW_COMMENT, 
    NodeFilter.FILTER_ACCEPT,
    false
);

Expected behavior:
document.createNodeIterator signature should accept 1-4 arguments to support Internet Explorer browsers.

Actual behavior:
The following exception is thrown during compilation:
TS2554: Expected 1-3 arguments, but got 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptQuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions