Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full HTML support #134

Open
alexkreidler opened this issue Aug 8, 2020 · 0 comments
Open

Full HTML support #134

alexkreidler opened this issue Aug 8, 2020 · 0 comments

Comments

@alexkreidler
Copy link

As it stands, sxd-xpath is the most full-featured and currently maintained XPath library in Rust.

The XPath 2.0 lists the following goals:

Support related XML standards
Improve ease of use
Improve interoperability
Improve i18n support
Maintain backward compatibility

A major use of XPath in the real world is web scraping and parsing. Although the XPath specs don't address it, I think it should be a major goal of this library.

Thus, that means:

  1. supporting basic HTML requirements like <!doctype html>, fully supporting self-closing tags, etc
  2. possibly abstracting out our DOM using traits that could be implemented by other parsing libraries like html5ever (Can I use it with html5ever? #73). This would allow us to use the full power of the Rust ecosystem, and rely on highly-used and maintained libraries, some of which have more powerful features like quirks mode and more advanced error reporting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant