Back to Anglesharp

AngleSharp Documentation

docs/README.md

1.7.02.9 KB
Original Source

AngleSharp Documentation

This documentation focuses on AngleSharp.Core, the standards-driven parser, DOM, selector engine, and browsing-context infrastructure that the other AngleSharp projects build on.

We have more detailed information regarding the following subjects:

Why AngleSharp?

If you need some arguments for using AngleSharp (over similar libraries) then here we go:

  • AngleSharp is totally standard-driven
  • AngleSharp handles HTML, SVG, and MathML content in HTML documents and exposes CSS selector support in core
  • AngleSharp stands the html5lib parser tests and aligns with browser behavior for malformed HTML
  • AngleSharp handles malformed HTML exactly as every modern browser
  • AngleSharp contains brand new elements like support for the <template> tag
  • AngleSharp performs at least as good as other libraries, mostly better
  • AngleSharp provides very useful extension methods for DOM manipulation
  • AngleSharp gives you a decoupled API that is easy to use
  • AngleSharp keeps the core surface small and exposes richer features through companion packages
  • AngleSharp can be used in cross-platform solutions
  • AngleSharp can validate and submit forms
  • AngleSharp is very easy to extend and customize

There are tons of other arguments. With the provided configuration abilities, and the given extensibility, AngleSharp can be used in various scenarios.

AngleSharp Ecosystem

AngleSharp.Core intentionally keeps the parser and DOM implementation focused. The wider ecosystem adds CSSOM, JavaScript integration, XML support, rendering, and other higher-level capabilities.

ProjectPurposeRepository
AngleSharp.CssFull CSS parser, CSSOM, and styling serviceshttps://github.com/AngleSharp/AngleSharp.Css
AngleSharp.JsJavaScript integration for browsing contextshttps://github.com/AngleSharp/AngleSharp.Js
AngleSharp.WasmWebAssembly-oriented integration work for AngleSharphttps://github.com/AngleSharp/AngleSharp.Wasm
AngleSharp.XmlXML, XHTML, and related XML-oriented parsing supporthttps://github.com/AngleSharp/AngleSharp.Xml
AngleSharp.RendererRendering-focused companion projecthttps://github.com/AngleSharp/AngleSharp.Renderer
AngleSharp.DiffingDOM and markup diffing utilitieshttps://github.com/AngleSharp/AngleSharp.Diffing
AngleSharp.XPathXPath support on top of the AngleSharp DOMhttps://github.com/AngleSharp/AngleSharp.XPath