Widely Available
CSS object models
id: css-escape
CSS.escape()
The
CSS.escape() static method escapes a string so that it can be used in a valid CSS selector.
Baseline Status:
Achieved Widely Available on Jul 15, 2022 (Cross-browser Newly Available since Jan 15, 2020).
Desktop Browser Engine Support
Google Chrome
46
Supported
Mozilla Firefox
31
Supported
Apple Safari
10.1
Supported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
46
Firefox Android
31
Safari iOS
10.3
Specifications and References
MDN Browser Compat Data Keys: