|
23 | 23 | * A subset of the CSS selector grammar is supported. The grammar is defined in the CSS Syntax |
24 | 24 | * specification, which is available at {@link https://www.w3.org/TR/selectors/#grammar}. |
25 | 25 | * |
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: |
28 | 27 | * |
29 | 28 | * <selector-list> = <complex-selector-list> |
30 | 29 | * <complex-selector-list> = <complex-selector># |
|
43 | 42 | * |
44 | 43 | * @link https://www.w3.org/TR/selectors/#grammar Refer to the grammar for more details. |
45 | 44 | * |
| 45 | + * Note that this grammar has been adapted and does not support the full CSS selector grammar. |
46 | 46 | * Supported selector syntax: |
47 | 47 | * - Type selectors (tag names, e.g. `div`) |
48 | 48 | * - Class selectors (e.g. `.class-name`) |
|
61 | 61 | * - Next sibling (`el + el`) |
62 | 62 | * - Subsequent sibling (`el ~ el`) |
63 | 63 | * |
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. |
69 | 69 | * |
70 | 70 | * @since TBD |
71 | 71 | * |
|
0 commit comments