haquery icon indicating copy to clipboard operation
haquery copied to clipboard

:first-child selector doesn't work

Open domenkozar opened this issue 9 years ago • 2 comments

Example on http://howoldis.herokuapp.com/

In Jquery:

$('a:first-child')
<a href=​"/​nixos-13.10">​ nixos-13.10​</a>​

in Haquery:

> Prelude.concatMap (select (Data.Text.pack "a:first-child")) html
[<a href="\\\"?C=N;O=D\\\"">
    Name
</a>,<a href="\\\"?C=M;O=A\\\"">
    Last modified
</a>,<a href="\\\"?C=S;O=A\\\"">
    Size
....

domenkozar avatar Oct 15 '16 09:10 domenkozar

Note that a:first does work.

domenkozar avatar Oct 15 '16 10:10 domenkozar

Going to look at this

crufter avatar Oct 15 '16 13:10 crufter