Open redneb opened 10 years ago
If we have the following example document
let doc = readString [] "<div><span><a></a></span></div>"
then
runX $ doc >>> css "div > span"
returns
[NTree (XTag "span" []) []]
i.e. it strips the children of the span (the a in this case). As a result, the following
span
a
runX $ doc >>> css "div > span > a"
fails to find the a element and returns the empty list.
+1
If we have the following example document
then
returns
i.e. it strips the children of the
span
(thea
in this case). As a result, the followingfails to find the
a
element and returns the empty list.