Elements are no longer accessible with the old id after being changed

Published: | Categories: DOM


Elements with id are accessible as window.id DOM objects. Previously, such objects remained on window even after the id of the element was programmatically changed. This odd behaviour has been fixed with Firefox 26. The document.getElementById method, which is recommended to use in general, is not affected by this change.