| 33 | |
| 34 | #[derive(Debug, Clone)] |
| 35 | pub 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 | |
| 46 | impl HtmlParser { |
| 47 | pub fn new(browser: Weak<RefCell<Browser>>, t: HtmlTokenizer) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected