Indexed properties on the window object (ie. iframes) are now enumerable

Published: | Categories: DOM


Previously, <iframe> in the DOM were not enumerable on the window object. This behaviour has been changed to comply with the spec, which means they are now returned with Object.keys(window). This is important to note for things like global leak detection, since appending iframes to the document will modify the enumerable keys on the window object.