Skip to content

Commit 7db0c58

Browse files
committed
Update the CssSelector component documentation
1 parent b00573c commit 7db0c58

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: components/css_selector.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This gives the following output:
5555

5656
.. code-block:: text
5757
58-
descendant-or-self::div[contains(concat(' ',normalize-space(@class), ' '), ' item ')]/h4/a
58+
descendant-or-self::div[@class and contains(concat(' ',normalize-space(@class), ' '), ' item ')]/h4/a
5959
6060
You can use this expression with, for instance, :phpclass:`DOMXPath` or
6161
:phpclass:`SimpleXMLElement` to find elements in a document.
@@ -76,17 +76,15 @@ web-browser.
7676

7777
* link-state selectors: ``:link``, ``:visited``, ``:target``
7878
* selectors based on user action: ``:hover``, ``:focus``, ``:active``
79-
* UI-state selectors: ``:enabled``, ``:disabled``, ``:indeterminate``
80-
(however, ``:checked`` and ``:unchecked`` are available)
79+
* UI-state selectors: ``:invalid``, ``:indeterminate`` (however, ``:enabled``,
80+
``:disabled``, ``:checked`` and ``:unchecked`` are available)
8181

8282
Pseudo-elements (``:before``, ``:after``, ``:first-line``,
8383
``:first-letter``) are not supported because they select portions of text
8484
rather than elements.
8585

8686
Several pseudo-classes are not yet supported:
8787

88-
* ``:lang(language)``
89-
* ``root``
9088
* ``*:first-of-type``, ``*:last-of-type``, ``*:nth-of-type``,
9189
``*:nth-last-of-type``, ``*:only-of-type``. (These work with an element
9290
name (e.g. ``li:first-of-type``) but not with ``*``.

0 commit comments

Comments
 (0)