You can try it in your browser (I verified in Chrome 59):
window.NodeFilter
returns a function
Object.keys(window).indexOf("NodeFilter")
returns -1
for (var prop in window) if (prop==="NodeFilter") console.log("yay")
prints nothing
The same is true for window.Node
.
Why does it happen? How can I get the list of all window
properties?