On top of that the dom.el equivalents are stricter (they'll error out on text nodes, which happen to be strings) and there's a few more useful helpers, such as dom-text. Not sure whether the other ones help, might be useful for implementing sibling combinators.
However, to make this transition, I'd need to bump the minimum required version to 25.1. This seems reasonably well supported across Linux distributions (only CentOS 7 doesn't make the cut).
If this is fine, I'd mark the above functions as deprecated and use dom.el in the code as well.
I realized recently that dom.el removed the need for the
esxml-node-*
accessors in esxml-query.el:esxml-node-tag
->dom-tag
esxml-node-attributes
->dom-attributes
esxml-node-attribute
->dom-attr
(reverse argument order)esxml-node-children
->dom-children
On top of that the dom.el equivalents are stricter (they'll error out on text nodes, which happen to be strings) and there's a few more useful helpers, such as
dom-text
. Not sure whether the other ones help, might be useful for implementing sibling combinators.However, to make this transition, I'd need to bump the minimum required version to 25.1. This seems reasonably well supported across Linux distributions (only CentOS 7 doesn't make the cut).
If this is fine, I'd mark the above functions as deprecated and use dom.el in the code as well.