Add the replace() function to DOMTokenList interface. We can use it like element.classList.replace('inactive', 'active').
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 61
- Chrome for Android release 61
- Android WebView release 61
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
- Shipped/Shipping
- No signal
- Shipped/Shipping
- No signals
Owner
Last updated on 2020-11-09