Struct html5gum::Doctype [−][src]
pub struct Doctype {
pub force_quirks: bool,
pub name: String,
pub public_identifier: Option<String>,
pub system_identifier: Option<String>,
}
Expand description
A doctype. Some examples:
<!DOCTYPE {name}>
<!DOCTYPE {name} PUBLIC '{public_identifier}'>
<!DOCTYPE {name} SYSTEM '{system_identifier}'>
<!DOCTYPE {name} PUBLIC '{public_identifier}' '{system_identifier}'>
Fields
force_quirks: bool
The “force quirks” flag.
name: String
The doctype’s name. For HTML documents this is “html”.
public_identifier: Option<String>
The doctype’s public identifier.
system_identifier: Option<String>
The doctype’s system identifier.