contain

Read More at MDN DocsView Spec

Safe to Use

contain is considered safe to use.

It’s supported by 91% of global browsers.

Browsers

ChromeJul 20, 2016v52.0.0
26%100%
There are no users of Chrome running a supported version.
SafariMar 15, 2022v15.4.0
5%83%
There are no users of Safari running a supported version.
EdgeJan 15, 2020v79.0.0
5%100%
There are no users of Edge running a supported version.
FirefoxSep 3, 2019v69.0.0
2%98%
There are no users of Firefox running a supported version.

Version Breakdown

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

Full Support

Chrome Android
Jul 27, 2016 v52.0.0
36%100%
100% of Chrome Android users are running a supported version.
Jul 27, 2016 – Latest
v52.0.0+
36%100%

Full Support

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

Full Support

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

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
1%100%
100% of Opera users are running a supported version.
Aug 2, 2016 – Latest
v39.0.0+
1%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
5%83%
There are no users of Safari running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
5%83%

Full Support

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

Full Support

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

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