MCPcopy Create free account
hub / github.com/d0iasm/saba / HtmlParser

Class HtmlParser

core/src/renderer/html/parser.rs:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34#[derive(Debug, Clone)]
35pub struct HtmlParser {
36 browser: Weak<RefCell<Browser>>,
37 window: Rc<RefCell<Window>>,
38 mode: InsertionMode,
39 /// https://html.spec.whatwg.org/multipage/parsing.html#original-insertion-mode
40 original_insertion_mode: InsertionMode,
41 /// https://html.spec.whatwg.org/multipage/parsing.html#the-stack-of-open-elements
42 stack_of_open_elements: Vec<Rc<RefCell<Node>>>,
43 t: HtmlTokenizer,
44}
45
46impl HtmlParser {
47 pub fn new(browser: Weak<RefCell<Browser>>, t: HtmlTokenizer) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected