contain

Read More at MDN DocsView Spec

Safe to Use

contain is considered safe to use.

It’s supported by 92% of global browsers.

Browsers

ChromeJul 20, 2016v52.0.0
24%100%
There are no users of Chrome running a supported version.
SafariMar 15, 2022v15.4.0
3%72%
There are no users of Safari running a supported version.
EdgeJan 15, 2020v79.0.0
4%100%
There are no users of Edge running a supported version.
FirefoxSep 3, 2019v69.0.0
3%97%
There are no users of Firefox running a supported version.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Jul 20, 2016 v52.0.0
24%100%
There are no users of Chrome running a supported version.
Jul 20, 2016 – Latest
v52.0.0+
24%100%

Full Support

Chrome Android
Jul 27, 2016 v52.0.0
39%99%
There are no users of Chrome Android running a supported version.
Jul 27, 2016 – Latest
v52.0.0+
39%99%

Full Support

Edge
Jan 15, 2020 v79.0.0
4%100%
There are no users of Edge running a supported version.
Jan 15, 2020 – Latest
v79.0.0+
4%100%

Full Support

Firefox
Sep 3, 2019 v69.0.0
3%97%
There are no users of Firefox running a supported version.
Sep 3, 2019 – Latest
v69.0.0+
3%97%

Full Support

Firefox for Android
Jul 28, 2020 v79.0.0
Firefox for Android supports this feature.
Jul 28, 2020 – Latest
v79.0.0+

Full Support

Internet Explorer
Unsupported
Internet Explorer does not support this feature.

No Support

 
Quest Browser
Unknown v5.0.0
Quest Browser supports this feature.
Unknown
v5.0.0+

Full Support

Opera
Aug 2, 2016 v39.0.0
2%100%
100% of Opera users are running a supported version.
Aug 2, 2016 – Latest
v39.0.0+
2%100%

Full Support

Opera Android
Oct 25, 2016 v41.0.0
Opera Android supports this feature.
Oct 25, 2016 – Latest
v41.0.0+

Full Support

Safari
Mar 15, 2022 v15.4.0
3%72%
There are no users of Safari running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
3%72%

Full Support

Safari on iOS
Mar 15, 2022 v15.4.0
14%85%
There are no users of Safari on iOS running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
14%85%

Full Support

Samsung Internet
Aug 23, 2017 v6.0.0
2%94%
There are no users of Samsung Internet running a supported version.
Aug 23, 2017 – Latest
v6.0.0+
2%94%

Full Support

WebView Android
Jul 27, 2016 v52.0.0
WebView Android supports this feature.
Jul 27, 2016 – Latest
v52.0.0+

Full Support

See Also

Contribute