help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elisps dom library doesn't work as I expect


From: Stefan Huchler
Subject: Re: elisps dom library doesn't work as I expect
Date: Wed, 10 May 2023 05:56:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]