Nested document.execCommand() calls are no longer allowed


Categories: DOM

Releases: Firefox 82


On Firefox 82 and later, recursively calling the document.execCommand method typically through a DOM event won’t be allowed according to the soon-to-be-changed spec, aiming at avoiding potential security issues.

While Safari still allows it, Chrome dropped the nested call support back in 2014, so the compatibility risk should be low. The legacy behaviour has been disabled in the Nightly and early Beta channels since Firefox 75, and no regressions reported so far.