Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7db0c58

Browse filesBrowse files
committed
Update the CssSelector component documentation
1 parent b00573c commit 7db0c58
Copy full SHA for 7db0c58

File tree

Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed

‎components/css_selector.rst

Copy file name to clipboardExpand all lines: components/css_selector.rst
+3-5Lines changed: 3 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.