From: Stefan Huchler <stefan.huchler@mail.de>
To: help-gnu-emacs@gnu.org
Subject: Re: elisps dom library doesn't work as I expect
Date: Wed, 10 May 2023 05:56:35 +0200 [thread overview]
Message-ID: <87mt2chma4.fsf@mail.de> (raw)
In-Reply-To: 87fs866pei.fsf@vagabond.tim-landscheidt.de
Tim Landscheidt <tim@tim-landscheidt.de> writes:
> dom-by-tag returns a list of DOM elements; however,
> dom-elements expects a single DOM element as its second ar-
> gument. So you need to iterate over the list of DOM ele-
> ments returned by dom-by-tag and call dom-elements on each,
> or use dom-search, etc.
Interesting, I find the documention of dom-elements confusing:
> Find elements matching MATCH
what are the "elements" then? attributes not tags/ dom entries? But yes
that would be a bugreport about the documentation also that dom-elements
is not even listed in the gnu doku seem strange to me.
But maybe I am just not good enough in xml lingo.
Could you explain a bit or show a example of the dom-search function or
explain it's parameters. I have no idea what in the docstring
"predicate" means and in what format it's expected, is Predicate a known
term for something specific?
next prev parent reply other threads:[~2023-05-10 3:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-09 3:54 elisps dom library doesn't work as I expect Stefan Huchler
2023-05-09 5:32 ` Tim Landscheidt
2023-05-10 3:56 ` Stefan Huchler [this message]
2023-05-10 20:18 ` Tim Landscheidt
2023-05-20 19:40 ` Stefan Huchler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mt2chma4.fsf@mail.de \
--to=stefan.huchler@mail.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).