Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created August 31, 2012 07:33
Show Gist options
  • Save joekarma/3549907 to your computer and use it in GitHub Desktop.
Save joekarma/3549907 to your computer and use it in GitHub Desktop.
CSS Selectors (Not Working)
(ql:quickload '(:drakma :closure-html :cxml :css-selectors))
(let ((page (chtml:parse
(drakma:http-request "http://www.google.com")
(cxml-dom:make-dom-builder))))
(css:query "div input" page))
;;
;; Fails with the following error message:
;;
;; There is no applicable method for the generic function
;; #<STANDARD-GENERIC-FUNCTION DOM:TAG-NAME (1)>
;; when called with arguments
;; (#<RUNE-DOM::DOCUMENT {100FEA6FF3}>).
;;
@joekarma
Copy link
Author

Cheers, thanks for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment