Closed
Description
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.