Shinmera / plump

Practically Lenient and Unimpressive Markup Parser for Common Lisp
https://shinmera.github.io/plump
zlib License
120 stars 21 forks source link

cannot get elements with thead tag #24

Closed shukryzablah closed 4 years ago

shukryzablah commented 4 years ago

The following code doesn't get me the vector of plump dom elements of type thead (returns NIL). However, If I change the tag to things like table, caption, or even tbody I do get the expected elements.

Am I overlooking something here? I appreciate the help.

(ql:quickload '("dexador" "plump"))
(defparameter *url* "https://en.wikipedia.org/wiki/Central_America")
(plump:get-elements-by-tag-name (plump:parse (dex:get *url*)) "thead")
Shinmera commented 4 years ago

Uh, there's just no thead elements in that document, so obviously it can't return any.

shukryzablah commented 4 years ago

You're right. I was checking with the inspector that comes in with my browser and it must be adding those tags to the document.

On Sat, Feb 8, 2020, 2:06 AM Nicolas Hafner notifications@github.com wrote:

Uh, there's just no thead elements in that document, so obviously it can't return any.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Shinmera/plump/issues/24?email_source=notifications&email_token=AG3OAIQXWUXYGO3D4Y5ZW2TRBZKXHA5CNFSM4KRXCYA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFLPDA#issuecomment-583710604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG3OAIW6SP6MGDNMALL754TRBZKXHANCNFSM4KRXCYAQ .