tali713 / esxml

An elisp library for working with xml, esxml and sxml.
58 stars 14 forks source link

Make use of dom.el in esxml-query.el #35

Open wasamasa opened 2 years ago

wasamasa commented 2 years ago

I realized recently that dom.el removed the need for the esxml-node-* accessors in esxml-query.el:

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.