Skip to content

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

Open
@redneb

Description

@redneb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions