return links as URL objects in html vocab
parent
4c7b2f9337
commit
8875c2ba26
|
@ -127,11 +127,13 @@ TUPLE: link attributes clickable ;
|
|||
[ name>> "a" = ]
|
||||
[ attributes>> "href" swap key? ] bi and ] filter
|
||||
] map sift
|
||||
[ [ attributes>> "href" swap at ] map ] map concat ;
|
||||
[ [ attributes>> "href" swap at ] map ] map concat
|
||||
[ >url ] map ;
|
||||
|
||||
: find-frame-links ( vector -- vector' )
|
||||
[ name>> "frame" = ] find-between-all
|
||||
[ [ attributes>> "src" swap at ] map sift ] map concat sift ;
|
||||
[ [ attributes>> "src" swap at ] map sift ] map concat sift
|
||||
[ >url ] map ;
|
||||
|
||||
: find-all-links ( vector -- vector' )
|
||||
[ find-hrefs ] [ find-frame-links ] bi append prune ;
|
||||
|
|
Loading…
Reference in New Issue