← Back to release summary

document.all is no longer [Replaceable].

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 65)
Intent stage
None

Summary

It has been possible for web developers to overwrite document.all for a long time, but according to the web standard, document.all will be no longer overwritable, i.e. it will be readonly. [before the change] document.all = 42; console.log(document.all); // prints 42 [after the change] document.all = 42; console.log(document.all); // prints a HTMLAllCollection

Standards & signals

View on chromestatus.com