4

I have this code snippet working on the browser using JavaScript:

document.querySelectorAll('[rel="next"]');

It returns an array that is empty or filled depending on the current web page.

I am trying to translate it to Parenscript inside a function as:

  (ps:chain document query-selector-all ...)

I am unable to figure out how to translate the placement of [rel="next"] as an argument to the function call. Could someone give a hint?

Obs.: I am using Common Lisp/SBCL.

Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30

1 Answers1

2
(ps:chain document (query-selector-all "[rel=\"next\"]"))
Svante
  • 50,694
  • 11
  • 78
  • 122