mod display;
use crate::HtmlElement;
use std::{
borrow::Cow,
fmt::{Display, Formatter},
};
#[derive(Clone, PartialEq, Eq)]
pub enum HtmlNode {
Doctype(DocType),
Comment(String),
Text(Cow<'static, str>),
Element(HtmlElement),
ProcessingInstruction(ProcessingInstruction),
}
#[derive(Clone, PartialEq, Eq)]
pub struct DocType {
pub name: String,
pub public_id: String,
pub system_id: String,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ProcessingInstruction {
pub target: String,
pub data: String,
}