egonSchiele / HandsomeSoup

Easy HTML parsing for Haskell
http://egonschiele.github.com/HandsomeSoup
BSD 3-Clause "New" or "Revised" License
124 stars 20 forks source link

the child selector (>) does not seem to work correctly #18

Open redneb opened 10 years ago

redneb commented 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

runX $ doc >>> css "div > span > a"

fails to find the a element and returns the empty list.

5outh commented 8 years ago

+1

ariskou commented 7 years ago

+1