| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
pub use self::AttrValueKind::*; |
| 16 |
pub use self::DoctypeIdKind::*; |
| 17 |
pub use self::RawKind::*; |
| 18 |
pub use self::ScriptEscapeKind::*; |
| 19 |
pub use self::State::*; |
| 20 |
|
| 21 |
#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)] |
| 22 |
pub enum ScriptEscapeKind { |
| 23 |
Escaped, |
| 24 |
DoubleEscaped, |
| 25 |
} |
| 26 |
|
| 27 |
#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)] |
| 28 |
pub enum DoctypeIdKind { |
| 29 |
Public, |
| 30 |
System, |
| 31 |
} |
| 32 |
|
| 33 |
#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)] |
| 34 |
pub enum RawKind { |
| 35 |
Rcdata, |
| 36 |
Rawtext, |
| 37 |
ScriptData, |
| 38 |
ScriptDataEscaped(ScriptEscapeKind), |
| 39 |
} |
| 40 |
|
| 41 |
#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)] |
| 42 |
pub enum AttrValueKind { |
| 43 |
Unquoted, |
| 44 |
SingleQuoted, |
| 45 |
DoubleQuoted, |
| 46 |
} |
| 47 |
|
| 48 |
#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)] |
| 49 |
pub enum State { |
| 50 |
Data, |
| 51 |
Plaintext, |
| 52 |
TagOpen, |
| 53 |
EndTagOpen, |
| 54 |
TagName, |
| 55 |
RawData(RawKind), |
| 56 |
RawLessThanSign(RawKind), |
| 57 |
RawEndTagOpen(RawKind), |
| 58 |
RawEndTagName(RawKind), |
| 59 |
ScriptDataEscapeStart(ScriptEscapeKind), |
| 60 |
ScriptDataEscapeStartDash, |
| 61 |
ScriptDataEscapedDash(ScriptEscapeKind), |
| 62 |
ScriptDataEscapedDashDash(ScriptEscapeKind), |
| 63 |
ScriptDataDoubleEscapeEnd, |
| 64 |
BeforeAttributeName, |
| 65 |
AttributeName, |
| 66 |
AfterAttributeName, |
| 67 |
BeforeAttributeValue, |
| 68 |
AttributeValue(AttrValueKind), |
| 69 |
AfterAttributeValueQuoted, |
| 70 |
SelfClosingStartTag, |
| 71 |
BogusComment, |
| 72 |
MarkupDeclarationOpen, |
| 73 |
CommentStart, |
| 74 |
CommentStartDash, |
| 75 |
Comment, |
| 76 |
CommentLessThanSign, |
| 77 |
CommentLessThanSignBang, |
| 78 |
CommentLessThanSignBangDash, |
| 79 |
CommentLessThanSignBangDashDash, |
| 80 |
CommentEndDash, |
| 81 |
CommentEnd, |
| 82 |
CommentEndBang, |
| 83 |
Doctype, |
| 84 |
BeforeDoctypeName, |
| 85 |
DoctypeName, |
| 86 |
AfterDoctypeName, |
| 87 |
AfterDoctypeKeyword(DoctypeIdKind), |
| 88 |
BeforeDoctypeIdentifier(DoctypeIdKind), |
| 89 |
DoctypeIdentifierDoubleQuoted(DoctypeIdKind), |
| 90 |
DoctypeIdentifierSingleQuoted(DoctypeIdKind), |
| 91 |
AfterDoctypeIdentifier(DoctypeIdKind), |
| 92 |
BetweenDoctypePublicAndSystemIdentifiers, |
| 93 |
BogusDoctype, |
| 94 |
CdataSection, |
| 95 |
CdataSectionBracket, |
| 96 |
CdataSectionEnd, |
| 97 |
} |