1
0
mirror of https://github.com/ericchiang/pup synced 2025-03-21 00:46:04 +00:00
Commit Graph

8 Commits

Author SHA1 Message Date
Jan Seeger
f9e1b3ed7d Enabled multiple attribute matchers for same attribute.
A selector with multiple attribute selectors on the same attribute would use only the last selector,
because `selector.Attr[attrname]` gets overwritten. Something like 'a[href^=https][href$=.zip]'
would give the results from 'a[href$=.zip]'.

Now, the attribute selectors are collected into a list, and we check whether all selectors match.
2020-09-04 11:24:41 +02:00
Jakub Wilk
56d0c59077 fix typos 2016-08-19 18:57:26 +02:00
Eric Chiang
0e201e701a *: revert Godep rewrite 2016-07-22 21:43:11 -07:00
Eric Chiang
7e986d528b godeps added 2015-04-05 15:21:06 -04:00
Eric Chiang
db016ce23c allow pseudo selectors within pseudo selectors 2015-02-01 15:45:38 -05:00
ericchiang
bc1fd77d6b switched import paths for go subrepos 2014-11-10 01:35:08 -05:00
ericchiang
e4043764a0 not and parent-of selectors added 2014-11-10 00:17:27 -05:00
ericchiang
d0ff822037 pup redone
Added:
* psuedo classes
   :empty
   :[first/last/only]-child
   :[first/last/only]-of-type
   :contains("text")
   :nth[-last]-child(n|odd|even|3n+1|n+2)
   :nth[-last]-of-type(n|odd|even|3n+2|n+2)
* json{} attr keys moved up a level
* quote enclosed attr selectors
* '+' and '>' intermediate selectors
2014-11-09 22:01:20 -05:00