@@ -55,7 +55,7 @@ This gives the following output:
55
55
56
56
.. code-block :: text
57
57
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
59
59
60
60
You can use this expression with, for instance, :phpclass: `DOMXPath ` or
61
61
:phpclass: `SimpleXMLElement ` to find elements in a document.
@@ -76,17 +76,15 @@ web-browser.
76
76
77
77
* link-state selectors: ``:link ``, ``:visited ``, ``:target ``
78
78
* 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)
81
81
82
82
Pseudo-elements (``:before ``, ``:after ``, ``:first-line ``,
83
83
``:first-letter ``) are not supported because they select portions of text
84
84
rather than elements.
85
85
86
86
Several pseudo-classes are not yet supported:
87
87
88
- * ``:lang(language) ``
89
- * ``root ``
90
88
* ``*:first-of-type ``, ``*:last-of-type ``, ``*:nth-of-type ``,
91
89
``*:nth-last-of-type ``, ``*:only-of-type ``. (These work with an element
92
90
name (e.g. ``li:first-of-type ``) but not with ``* ``.
0 commit comments