Struct html5tokenizer::token::Doctype
source · pub struct Doctype {
pub force_quirks: bool,
pub name: Option<String>,
pub public_id: Option<String>,
pub system_id: Option<String>,
}
Expand description
A doctype. Some examples:
<!DOCTYPE {name}>
<!DOCTYPE {name} PUBLIC '{public_id}'>
<!DOCTYPE {name} SYSTEM '{system_id}'>
<!DOCTYPE {name} PUBLIC '{public_id}' '{system_id}'>
Fields§
§force_quirks: bool
The force-quirks flag.
name: Option<String>
The doctype’s name. Uppercase ASCII characters (A-Z) have been converted to lowercase. For HTML documents this should be “html”.
public_id: Option<String>
The doctype’s public identifier.
system_id: Option<String>
The doctype’s system identifier.
Trait Implementations§
source§impl PartialEq for Doctype
impl PartialEq for Doctype
impl Eq for Doctype
impl StructuralEq for Doctype
impl StructuralPartialEq for Doctype
Auto Trait Implementations§
impl RefUnwindSafe for Doctype
impl Send for Doctype
impl Sync for Doctype
impl Unpin for Doctype
impl UnwindSafe for Doctype
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more