1mod display;
2
3use crate::HtmlElement;
4use std::{
5 borrow::Cow,
6 fmt::{Display, Formatter},
7};
8
9#[derive(Clone, PartialEq, Eq)]
10pub enum HtmlNode {
11 Doctype(DocType),
13 Comment(String),
15 Text(Cow<'static, str>),
17 Element(HtmlElement),
19 ProcessingInstruction(ProcessingInstruction),
21}
22
23#[derive(Clone, PartialEq, Eq)]
25pub struct DocType {
26 pub name: String,
28 pub public_id: String,
30 pub system_id: String,
32}
33
34#[derive(Debug, Clone, PartialEq, Eq)]
36pub struct ProcessingInstruction {
37 pub target: String,
39 pub data: String,
41}