File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ would be parsed into the Clojure data:
205
205
({:tag :div,
206
206
:attrs {:id "foo"},
207
207
:content
208
- ({:tag :span, :attrs {:class "bar"}, :content ("Hello!")})})})}
208
+ ({:tag :span, :attrs {:id "bar"}, :content ("Hello!")})})})}
209
209
----
210
210
211
211
This is more verbose, but it is easier to manipulate from Clojure. You
@@ -301,8 +301,8 @@ braces). The range selector contains two other selectors and
301
301
inclusively matches all the nodes between the two matched nodes, in
302
302
document order. The starting node is in key position in the map
303
303
literal and the ending node is in value position, so the selector
304
- +{[:. foo] [:. bar]}+ will match all nodes between nodes with an ID of
305
- "foo" and an ID of "bar".
304
+ +{[:# foo] [:# bar]}+ will match all nodes between nodes with CSS ID of
305
+ "foo" and a CSS ID of "bar".
306
306
307
307
The example in the solution uses a range selector in the +defsnippet+
308
308
form to select all the nodes that are part of the same logical blog
You can’t perform that action at this time.
0 commit comments