Skip to content

Commit b389584

Browse files
committed
Update class doc
1 parent 298fb83 commit b389584

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/wp-includes/html-api/class-wp-css-selector.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
* A subset of the CSS selector grammar is supported. The grammar is defined in the CSS Syntax
2424
* specification, which is available at {@link https://www.w3.org/TR/selectors/#grammar}.
2525
*
26-
* @todo Review this grammar, especially the complex selector for accurate support information.
27-
* The supported grammar is:
26+
* This class is rougly analogous to the <selector-list> in the grammar. The supported grammar is:
2827
*
2928
* <selector-list> = <complex-selector-list>
3029
* <complex-selector-list> = <complex-selector>#
@@ -43,6 +42,7 @@
4342
*
4443
* @link https://www.w3.org/TR/selectors/#grammar Refer to the grammar for more details.
4544
*
45+
* Note that this grammar has been adapted and does not support the full CSS selector grammar.
4646
* Supported selector syntax:
4747
* - Type selectors (tag names, e.g. `div`)
4848
* - Class selectors (e.g. `.class-name`)
@@ -61,11 +61,11 @@
6161
* - Next sibling (`el + el`)
6262
* - Subsequent sibling (`el ~ el`)
6363
*
64-
* Future ideas
65-
* - Namespace type selectors could be implemented with select namespaces in order to
66-
* select elements from a namespace, for example:
67-
* - `svg|*` to select all SVG elements
68-
* - `html|title` to select only HTML TITLE elements.
64+
* Future ideas:
65+
* - Namespace type selectors could be implemented with select namespaces in order to
66+
* select elements from a namespace, for example:
67+
* - `svg|*` to select all SVG elements
68+
* - `html|title` to select only HTML TITLE elements.
6969
*
7070
* @since TBD
7171
*

0 commit comments

Comments
 (0)