diff --git a/docs/src/markdown/_snippets/links.txt b/docs/src/markdown/_snippets/links.txt
index cfb3004..9e2f5aa 100644
--- a/docs/src/markdown/_snippets/links.txt
+++ b/docs/src/markdown/_snippets/links.txt
@@ -1,5 +1,6 @@
 [aspell]: https://github.com/GNUAspell/aspell
 [bs4]: https://beautiful-soup-4.readthedocs.io/en/latest/#
+[contains-draft]: https://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors
 [custom-extensions-1]: https://drafts.csswg.org/css-extensions-1/
 [html5lib]: https://github.com/html5lib/html5lib-python
 [lxml]: https://github.com/lxml/lxml
diff --git a/docs/src/markdown/about/changelog.md b/docs/src/markdown/about/changelog.md
index defd93a..37bf302 100644
--- a/docs/src/markdown/about/changelog.md
+++ b/docs/src/markdown/about/changelog.md
@@ -1,8 +1,10 @@
 # Changelog
 
-## Latest
+## 1.9.0
 
+- **NEW**: Allow `:contans()` to accept a list of text to search for.
 - **FIX**: Don't install test files when installing the `soupsieve` package.
+- **FIX**: Improve efficiency of `:contains()` comparison.
 
 ## 1.8.0
 
diff --git a/docs/src/markdown/about/development.md b/docs/src/markdown/about/development.md
index d6f969f..5af0ed6 100644
--- a/docs/src/markdown/about/development.md
+++ b/docs/src/markdown/about/development.md
@@ -239,7 +239,7 @@ Attribute       | Description
 `selectors`     | Contains a tuple of `SelectorList` objects for each pseudo-class selector  part of the compound selector: `#!css :is()`, `#!css :not()`, `#!css :has()`, etc.
 `relation`      | This will contain a `SelectorList` object with one `Selector` object, which could in turn chain an additional relation depending on the complexity of the compound selector.  For instance, `div > p + a` would be a `Selector` for `a` that contains a `relation` for `p` (another `SelectorList` object) which also contains a relation of `div`.  When matching, we would match that the tag is `a`, and then walk its relation chain verifying that they all match. In this case, the relation chain would be a direct, previous sibling of `p`, which has a direct parent of `div`. A `:has()` pseudo-class would walk this in the opposite order. `div:has(> p + a)` would verify `div`, and then check for a child of `p` with a sibling of `a`.
 `rel_type`      | `rel_type` is attached to relational selectors. In the case of `#!css div > p + a`, the relational selectors of `div` and `p` would get a relational type of `>` and `+` respectively. `:has()` relational `rel_type` are preceded with `:` to signify a forward looking relation.
-`contains`      | Contains a tuple of strings of content to match in an element.
+`contains`      | Contains a tuple of [`SelectorContains`](#selectorcontains) objects. Each object contains the list of text to match an element's content against.
 `lang`          | Contains a tuple of [`SelectorLang`](#selectorlang) objects.
 `flags`         | Selector flags that used to signal a type of selector is present.
 
@@ -288,6 +288,20 @@ Attribute           | Description
 `pattern`           | Contains a `re` regular expression object that matches the desired attribute value.
 `xml_type_pattern`  | As the default `type` pattern is case insensitive, when the attribute value is `type` and a case sensitivity has not been explicitly defined, a secondary case sensitive `type` pattern is compiled for use with XML documents when detected.
 
+### `SelectorContains`
+
+```py3
+class SelectorContains:
+    """Selector contains rule."""
+
+    def __init__(self, text):
+        """Initialize."""
+```
+
+Attribute           | Description
+------------------- | -----------
+`text`              | A tuple of acceptable text that that an element should match. An element only needs to match at least one.
+
 ### `SelectorNth`
 
 ```py3
diff --git a/docs/src/markdown/selectors.md b/docs/src/markdown/selectors.md
index 785777d..9cf8ecb 100644
--- a/docs/src/markdown/selectors.md
+++ b/docs/src/markdown/selectors.md
@@ -412,10 +412,15 @@ Selects any `#!html <input type="radio"/>`, `#!html <input type="checkbox"/>`, o
     input:checked
     ```
 
-### `:contains`<span class="star badge"></span> {:#:contains}
+### `:contains()`<span class="star badge"></span> {:#:contains}
 
 Selects elements that contain the text provided text. Text can be found in either itself, or its descendants.
 
+Contains was originally included in a [CSS early draft][contains-draft], but was in the end dropped from the draft.
+Soup Sieve implements it how it was originally proposed in the draft with the addition that `:contains()` can accept
+either a single value, or a comma separated list of values. An element needs only to match at least one of the items
+in the comma separated list to be considered matching.
+
 !!! warning "Contains"
     `:contains()` is an expensive operation as it scans all the text nodes of an element under consideration, which
     includes all descendants. Using highly specific selectors can reduce how often it is evaluated.
diff --git a/soupsieve/__meta__.py b/soupsieve/__meta__.py
index ce903a1..2cbe51a 100644
--- a/soupsieve/__meta__.py
+++ b/soupsieve/__meta__.py
@@ -186,5 +186,5 @@ def parse_version(ver, pre=False):
     return Version(major, minor, micro, release, pre, post, dev)
 
 
-__version_info__ = Version(1, 8, 1, ".dev")
+__version_info__ = Version(1, 9, 0, ".dev")
 __version__ = __version_info__._get_canonical()
diff --git a/soupsieve/css_match.py b/soupsieve/css_match.py
index 7bb01d1..923eb84 100644
--- a/soupsieve/css_match.py
+++ b/soupsieve/css_match.py
@@ -811,10 +811,17 @@ class CSSMatch(Document, object):
         """Match element if it contains text."""
 
         match = True
-        for c in contains:
-            if c not in self.get_text(el):
+        content = None
+        for contain_list in contains:
+            if content is None:
+                content = self.get_text(el)
+            found = False
+            for text in contain_list.text:
+                if text in content:
+                    found = True
+                    break
+            if not found:
                 match = False
-                break
         return match
 
     def match_default(self, el):
diff --git a/soupsieve/css_parser.py b/soupsieve/css_parser.py
index c662662..a537d5f 100644
--- a/soupsieve/css_parser.py
+++ b/soupsieve/css_parser.py
@@ -149,13 +149,13 @@ PAT_PSEUDO_NTH_TYPE = r'''
 \({ws}*(?P<nth_type>{nth}|even|odd)){ws}*\)
 '''.format(ws=WSC, nth=NTH)
 # Pseudo class language (`:lang("*-de", en)`)
-PAT_PSEUDO_LANG = r':lang\({ws}*(?P<lang>{value}(?:{ws}*,{ws}*{value})*){ws}*\)'.format(ws=WSC, value=VALUE)
+PAT_PSEUDO_LANG = r':lang\({ws}*(?P<values>{value}(?:{ws}*,{ws}*{value})*){ws}*\)'.format(ws=WSC, value=VALUE)
 # Pseudo class direction (`:dir(ltr)`)
 PAT_PSEUDO_DIR = r':dir\({ws}*(?P<dir>ltr|rtl){ws}*\)'.format(ws=WSC)
 # Combining characters (`>`, `~`, ` `, `+`, `,`)
 PAT_COMBINE = r'{wsc}*?(?P<relation>[,+>~]|{ws}(?![,+>~])){wsc}*'.format(ws=WS, wsc=WSC)
 # Extra: Contains (`:contains(text)`)
-PAT_PSEUDO_CONTAINS = r':contains\({ws}*(?P<value>{value}){ws}*\)'.format(ws=WSC, value=VALUE)
+PAT_PSEUDO_CONTAINS = r':contains\({ws}*(?P<values>{value}(?:{ws}*,{ws}*{value})*){ws}*\)'.format(ws=WSC, value=VALUE)
 
 # Regular expressions
 # CSS escape pattern
@@ -166,8 +166,8 @@ RE_NTH = re.compile(
     r'(?P<s1>[-+])?(?P<a>[0-9]+n?|n)(?:(?<=n){ws}*(?P<s2>[-+]){ws}*(?P<b>[0-9]+))?'.format(ws=WSC),
     re.I
 )
-# Pattern to iterate multiple languages.
-RE_LANG = re.compile(r'(?:(?P<value>{value})|(?P<split>{ws}*,{ws}*))'.format(ws=WSC, value=VALUE), re.X)
+# Pattern to iterate multiple values.
+RE_VALUES = re.compile(r'(?:(?P<value>{value})|(?P<split>{ws}*,{ws}*))'.format(ws=WSC, value=VALUE), re.X)
 # Whitespace checks
 RE_WS = re.compile(WS)
 RE_WS_BEGIN = re.compile('^{}*'.format(WSC))
@@ -751,21 +751,27 @@ class CSSParser(object):
     def parse_pseudo_contains(self, sel, m, has_selector):
         """Parse contains."""
 
-        content = m.group('value')
-        if content.startswith(("'", '"')):
-            content = css_unescape(content[1:-1], True)
-        else:
-            content = css_unescape(content)
-        sel.contains.append(content)
+        values = m.group('values')
+        patterns = []
+        for token in RE_VALUES.finditer(values):
+            if token.group('split'):
+                continue
+            value = token.group('value')
+            if value.startswith(("'", '"')):
+                value = css_unescape(value[1:-1], True)
+            else:
+                value = css_unescape(value)
+            patterns.append(value)
+        sel.contains.append(ct.SelectorContains(tuple(patterns)))
         has_selector = True
         return has_selector
 
     def parse_pseudo_lang(self, sel, m, has_selector):
         """Parse pseudo language."""
 
-        lang = m.group('lang')
+        values = m.group('values')
         patterns = []
-        for token in RE_LANG.finditer(lang):
+        for token in RE_VALUES.finditer(values):
             if token.group('split'):
                 continue
             value = token.group('value')
diff --git a/soupsieve/css_types.py b/soupsieve/css_types.py
index b690d8f..d426287 100644
--- a/soupsieve/css_types.py
+++ b/soupsieve/css_types.py
@@ -7,6 +7,7 @@ __all__ = (
     'SelectorNull',
     'SelectorTag',
     'SelectorAttribute',
+    'SelectorContains',
     'SelectorNth',
     'SelectorLang',
     'SelectorList',
@@ -234,6 +235,19 @@ class SelectorAttribute(Immutable):
         )
 
 
+class SelectorContains(Immutable):
+    """Selector contains rule."""
+
+    __slots__ = ("text", "_hash")
+
+    def __init__(self, text):
+        """Initialize."""
+
+        super(SelectorContains, self).__init__(
+            text=text
+        )
+
+
 class SelectorNth(Immutable):
     """Selector nth type."""
 
@@ -324,6 +338,7 @@ pickle_register(Selector)
 pickle_register(SelectorNull)
 pickle_register(SelectorTag)
 pickle_register(SelectorAttribute)
+pickle_register(SelectorContains)
 pickle_register(SelectorNth)
 pickle_register(SelectorLang)
 pickle_register(SelectorList)

Allow a list of content in :contains()
The `:contains()` selector came about a long time ago and was abandoned in the CSS spec. We currently mimic contains as it was [described originally](https://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors).

It is important to note if that since the original spec is dead, there will be no updates. I imagine, if `:contains()` did not die way back when, that it is not impossible to think it would have been expanded to allow a comma-separated list of content: `p:contains("some text", "some other text"`).

As `:contains()` currently supports valid identifiers or quoted values, a comma-separated list would contains a list of valid identifiers or quoted values. `:contains()` would match if any of the the items in the list match.

With things like `:not()` and `:lang()` moving towards comma-separated lists, and new functional selectors supporting comma-separated lists out of the box (except for a things like `:nth-child()`, `:dir()`, etc.), I think this evolution for `:contains()` makes sense.

diff --git a/tests/test_api.py b/tests/test_api.py
index d810c92..c389870 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -457,9 +457,9 @@ class TestSoupSieve(util.TestCase):
         # We force a pattern that contains all custom types:
         # `Selector`, `NullSelector`, `SelectorTag`, `SelectorAttribute`,
         # `SelectorNth`, `SelectorLang`, `SelectorList`, `Namespaces`,
-        # and `CustomSelectors`.
+        # `SelectorContains`, and `CustomSelectors`.
         p1 = sv.compile(
-            'p.class#id[id]:nth-child(2):lang(en):focus',
+            'p.class#id[id]:nth-child(2):lang(en):focus:contains("text", "other text")',
             {'html': 'http://www.w3.org/TR/html4/'},
             custom={':--header': 'h1, h2, h3, h4, h5, h6'}
         )
@@ -469,7 +469,7 @@ class TestSoupSieve(util.TestCase):
 
         # Test that we pull the same one from cache
         p2 = sv.compile(
-            'p.class#id[id]:nth-child(2):lang(en):focus',
+            'p.class#id[id]:nth-child(2):lang(en):focus:contains("text", "other text")',
             {'html': 'http://www.w3.org/TR/html4/'},
             custom={':--header': 'h1, h2, h3, h4, h5, h6'}
         )
@@ -477,7 +477,7 @@ class TestSoupSieve(util.TestCase):
 
         # Test that we compile a new one when providing a different flags
         p3 = sv.compile(
-            'p.class#id[id]:nth-child(2):lang(en):focus',
+            'p.class#id[id]:nth-child(2):lang(en):focus:contains("text", "other text")',
             {'html': 'http://www.w3.org/TR/html4/'},
             custom={':--header': 'h1, h2, h3, h4, h5, h6'},
             flags=0x10
diff --git a/tests/test_extra/test_contains.py b/tests/test_extra/test_contains.py
index 5b68ddb..09e146e 100644
--- a/tests/test_extra/test_contains.py
+++ b/tests/test_extra/test_contains.py
@@ -66,6 +66,46 @@ class TestContains(util.TestCase):
             flags=util.HTML
         )
 
+    def test_contains_list(self):
+        """Test contains list."""
+
+        self.assert_selector(
+            self.MARKUP,
+            'body span:contains("does not exist", "that")',
+            ['2'],
+            flags=util.HTML
+        )
+
+    def test_contains_multiple(self):
+        """Test contains multiple."""
+
+        self.assert_selector(
+            self.MARKUP,
+            'body span:contains("th"):contains("at")',
+            ['2'],
+            flags=util.HTML
+        )
+
+    def test_contains_multiple_not_match(self):
+        """Test contains multiple with "not" and with a match."""
+
+        self.assert_selector(
+            self.MARKUP,
+            'body span:not(:contains("does not exist")):contains("that")',
+            ['2'],
+            flags=util.HTML
+        )
+
+    def test_contains_multiple_not_no_match(self):
+        """Test contains multiple with "not" and no match."""
+
+        self.assert_selector(
+            self.MARKUP,
+            'body span:not(:contains("that")):contains("that")',
+            [],
+            flags=util.HTML
+        )
+
     def test_contains_with_descendants(self):
         """Test that contains returns descendants as well as the top level that contain."""
 

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-cov coverage lxml html5lib mypy
apt-get update apt-get install -y gcc
3.9
requirements/project.txt requirements/tests.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
beautifulsoup4==4.13.3
coverage==7.8.0
exceptiongroup==1.2.2
html5lib==1.1
iniconfig==2.1.0
lxml==5.3.1
mypy==1.15.0
mypy-extensions==1.0.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
six==1.17.0
-e git+https://github.com/facelessuser/soupsieve.git@fbf98e41becf73e0e24143f6539a9719748f5ffc#egg=soupsieve
tomli==2.2.1
typing_extensions==4.13.0
webencodings==0.5.1

name: soupsieve
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - beautifulsoup4==4.13.3
      - coverage==7.8.0
      - exceptiongroup==1.2.2
      - html5lib==1.1
      - iniconfig==2.1.0
      - lxml==5.3.1
      - mypy==1.15.0
      - mypy-extensions==1.0.0
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - six==1.17.0
      - tomli==2.2.1
      - typing-extensions==4.13.0
      - webencodings==0.5.1
prefix: /opt/conda/envs/soupsieve

tests/test_api.py::TestSoupSieve::test_copy_pickle tests/test_extra/test_contains.py::TestContains::test_contains_list tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_list
tests/test_api.py::TestSoupSieve::test_cache tests/test_api.py::TestSoupSieve::test_closest_match_complex_parent tests/test_api.py::TestSoupSieve::test_closest_match_parent tests/test_api.py::TestSoupSieve::test_closest_match_self tests/test_api.py::TestSoupSieve::test_closest_must_be_parent tests/test_api.py::TestSoupSieve::test_comments tests/test_api.py::TestSoupSieve::test_compiled_comments tests/test_api.py::TestSoupSieve::test_compiled_icomments tests/test_api.py::TestSoupSieve::test_filter_list tests/test_api.py::TestSoupSieve::test_filter_tag tests/test_api.py::TestSoupSieve::test_icomments tests/test_api.py::TestSoupSieve::test_immutable_dict_size tests/test_api.py::TestSoupSieve::test_iselect tests/test_api.py::TestSoupSieve::test_match tests/test_api.py::TestSoupSieve::test_recompile tests/test_api.py::TestSoupSieve::test_select tests/test_api.py::TestSoupSieve::test_select_limit tests/test_api.py::TestSoupSieve::test_select_one tests/test_api.py::TestSoupSieve::test_select_one_none tests/test_api.py::TestSoupSieve::test_select_order tests/test_api.py::TestInvalid::test_immutable_dict_hashable_key tests/test_api.py::TestInvalid::test_immutable_dict_hashable_value tests/test_api.py::TestInvalid::test_immutable_dict_read_only tests/test_api.py::TestInvalid::test_immutable_object tests/test_api.py::TestInvalid::test_invalid_custom_hashable_key tests/test_api.py::TestInvalid::test_invalid_custom_hashable_value tests/test_api.py::TestInvalid::test_invalid_custom_type tests/test_api.py::TestInvalid::test_invalid_namespace_hashable_key tests/test_api.py::TestInvalid::test_invalid_namespace_hashable_value tests/test_api.py::TestInvalid::test_invalid_namespace_type tests/test_api.py::TestInvalid::test_invalid_type_input_comments tests/test_api.py::TestInvalid::test_invalid_type_input_filter tests/test_api.py::TestInvalid::test_invalid_type_input_match tests/test_api.py::TestInvalid::test_invalid_type_input_select tests/test_api.py::TestInvalidQuirks::test_immutable_dict_hashable_key tests/test_api.py::TestInvalidQuirks::test_immutable_dict_hashable_value tests/test_api.py::TestInvalidQuirks::test_immutable_dict_read_only tests/test_api.py::TestInvalidQuirks::test_immutable_object tests/test_api.py::TestInvalidQuirks::test_invalid_custom_hashable_key tests/test_api.py::TestInvalidQuirks::test_invalid_custom_hashable_value tests/test_api.py::TestInvalidQuirks::test_invalid_custom_type tests/test_api.py::TestInvalidQuirks::test_invalid_namespace_hashable_key tests/test_api.py::TestInvalidQuirks::test_invalid_namespace_hashable_value tests/test_api.py::TestInvalidQuirks::test_invalid_namespace_type tests/test_api.py::TestInvalidQuirks::test_invalid_type_input_comments tests/test_api.py::TestInvalidQuirks::test_invalid_type_input_filter tests/test_api.py::TestInvalidQuirks::test_invalid_type_input_match tests/test_api.py::TestInvalidQuirks::test_invalid_type_input_select tests/test_api.py::TestInvalidQuirks::test_quirks_warn_attribute_unquoted tests/test_api.py::TestInvalidQuirks::test_quirks_warn_relative_combinator tests/test_api.py::TestSyntaxErrorReporting::test_simple_syntax_error tests/test_api.py::TestSyntaxErrorReporting::test_syntax_error_has_text_and_position tests/test_api.py::TestSyntaxErrorReporting::test_syntax_error_on_third_line tests/test_api.py::TestSyntaxErrorReporting::test_syntax_error_with_multiple_lines tests/test_extra/test_contains.py::TestContains::test_contains tests/test_extra/test_contains.py::TestContains::test_contains_bad tests/test_extra/test_contains.py::TestContains::test_contains_cdata_html tests/test_extra/test_contains.py::TestContains::test_contains_cdata_xhtml tests/test_extra/test_contains.py::TestContains::test_contains_cdata_xml tests/test_extra/test_contains.py::TestContains::test_contains_escapes tests/test_extra/test_contains.py::TestContains::test_contains_multiple tests/test_extra/test_contains.py::TestContains::test_contains_multiple_not_match tests/test_extra/test_contains.py::TestContains::test_contains_multiple_not_no_match tests/test_extra/test_contains.py::TestContains::test_contains_quoted_with_escaped_newline tests/test_extra/test_contains.py::TestContains::test_contains_quoted_with_escaped_newline_with_carriage_return tests/test_extra/test_contains.py::TestContains::test_contains_quoted_with_space tests/test_extra/test_contains.py::TestContains::test_contains_quoted_without_space tests/test_extra/test_contains.py::TestContains::test_contains_with_descendants tests/test_extra/test_contains.py::TestContainsQuirks::test_contains tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_bad tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_cdata_html tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_cdata_xhtml tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_cdata_xml tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_escapes tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_multiple tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_multiple_not_match tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_multiple_not_no_match tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_quoted_with_escaped_newline tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_quoted_with_escaped_newline_with_carriage_return tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_quoted_with_space tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_quoted_without_space tests/test_extra/test_contains.py::TestContainsQuirks::test_contains_with_descendants
docs/src/markdown/selectors.md soupsieve/__meta__.py docs/src/markdown/about/changelog.md soupsieve/css_types.py soupsieve/css_parser.py soupsieve/css_match.py docs/src/markdown/_snippets/links.txt docs/src/markdown/about/development.md
docs/src/markdown/selectors.md soupsieve/__meta__.py docs/src/markdown/about/changelog.md soupsieve/css_types.py soupsieve/css_parser.py soupsieve/css_match.py docs/src/markdown/_snippets/links.txt docs/src/markdown/about/development.md