Open sebma opened 4 years ago
Is this a bug or a feature?
Where was it documented this ever worked this way?
@Lewiscowles1986 My title was a little confusing so I changed it to :
Cannot select two attributes with two "attr{}" calls on the same line
Thanks. I think it helps more both for you and the author.
From looking at the code this looks like it would take an overhaul of how they do things.
Looks like you can fudge around this with the JSON output these days?
curl -qsL http://en.wikipedia.org/wiki/Robots_exclusion_standard | pup 'link[type="application/x-wiki"] json{}' | jq -r '.[]|[.title, .rel] | @tsv'
Edit this page alternate
Hi, I'm using
pup v0.4.0
I cannot select two different attributes using
attr{}
:Selecting the
title
attribute of thelink[type="application/x-wiki"]
element :Selecting the
rel
attribute of thelink[type="application/x-wiki"]
element :Selecting both attributes of the
link[type="application/x-wiki"]
element :As you can see,
pup
only selected the last one.Can you please have a look ?