Skip to content

Commit a49d4e5

Browse files
committed
Add notes on partial support
1 parent b7b5597 commit a49d4e5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

readme.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!--lint disable no-html-->
2+
13
# hast-util-select [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
24

35
`querySelector`, `querySelectorAll`, and `matches` for [HAST][] nodes.
@@ -208,9 +210,13 @@ Yields:
208210
* [ ]`[*|attr]` (any namespace attribute)
209211
* [ ]`[|attr]` (no namespace attribute)
210212
* [ ]`[attr=value i]` (attribute case-insensitive)
211-
* [ ]`:has()` (functional pseudo class)
212-
* [ ]`:nth-child(n of S)` (scoped to parent S)
213-
* [ ]`:nth-last-child(n of S)` (scoped to parent S)
213+
* [ ]`:has()` (functional pseudo-class).
214+
<small>Relative selectors (`:has(> img)`) are not supported, but scope is
215+
(`:has(:scope > img)`) </small>
216+
* [ ]`:nth-child(n of S)` (functional pseudo-class).
217+
<small>Scoping to parents is not supported</small>
218+
* [ ]`:nth-last-child(n of S)` (scoped to parent S).
219+
<small>Scoping to parents is not supported</small>
214220
* [ ]`:active` (pseudo-class)
215221
* [ ]`:current` (pseudo-class)
216222
* [ ]`:current()` (functional pseudo-class)

0 commit comments

Comments
 (0)