1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! HTML5 parser: tokenizer + tree builder producing a [`Document`].
//!
//! # Example
//!
//! ```
//! # fn main() -> Result<(), html_cat::Error> {
//! use html_cat::parse;
//!
//! let doc = parse("<!DOCTYPE html><html><body><p>hi</p></body></html>")?;
//! assert_eq!(doc.root().name(), "html");
//! # Ok(())
//! # }
//! ```
pub use Error;
pub use ;
/// Lex and build a [`Document`] from `source`.
///
/// # Errors
///
/// Currently never returns `Err`; the signature reserves an `Error`
/// channel for future strict-mode callers.