Skip to content

Commit 6e62545

Browse files
committed
updated readme
1 parent 6b9070b commit 6e62545

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,22 @@ $ cat robots.html | pup ':parent-of([action="edit"])'
149149
For a complete list, view the [implemented selectors](#Implemented Selectors)
150150
section.
151151

152+
153+
####`+`, `>`, and `,`
154+
155+
There are intermediate characters which declare special instructions. For
156+
instance, a comma `,` allows pup to specify mulitple groups of selctors.
157+
158+
```bash
159+
cat robots.html | pup 'title, h1 span[dir="auto"]'
160+
<title>
161+
Robots exclusion standard - Wikipedia, the free encyclopedia
162+
</title>
163+
<span dir="auto">
164+
Robots exclusion standard
165+
</span>
166+
```
167+
152168
####Chain selectors together
153169

154170
When combining selectors, the HTML nodes selected by the previous selector will

0 commit comments

Comments
 (0)