1 // Copyright 2014-2017 The html5ever Project Developers. See the
2 // COPYRIGHT file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
12 //! This is public for use by the tokenizer tests. Other library
13 //! users should not have to care about this.
15 pub use self::ScriptEscapeKind
::*;
16 pub use self::DoctypeIdKind
::*;
17 pub use self::RawKind
::*;
18 pub use self::AttrValueKind
::*;
19 pub use self::State
::*;
21 #[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)]
22 pub enum ScriptEscapeKind
{
27 #[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)]
28 pub enum DoctypeIdKind
{
33 #[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)]
38 ScriptDataEscaped(ScriptEscapeKind
),
41 #[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)]
42 pub enum AttrValueKind
{
48 #[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone, Hash, Debug)]
56 RawLessThanSign(RawKind
),
57 RawEndTagOpen(RawKind
),
58 RawEndTagName(RawKind
),
59 ScriptDataEscapeStart(ScriptEscapeKind
),
60 ScriptDataEscapeStartDash
,
61 ScriptDataEscapedDash(ScriptEscapeKind
),
62 ScriptDataEscapedDashDash(ScriptEscapeKind
),
63 ScriptDataDoubleEscapeEnd
,
68 AttributeValue(AttrValueKind
),
69 AfterAttributeValueQuoted
,
72 MarkupDeclarationOpen
,
83 AfterDoctypeKeyword(DoctypeIdKind
),
84 BeforeDoctypeIdentifier(DoctypeIdKind
),
85 DoctypeIdentifierDoubleQuoted(DoctypeIdKind
),
86 DoctypeIdentifierSingleQuoted(DoctypeIdKind
),
87 AfterDoctypeIdentifier(DoctypeIdKind
),
88 BetweenDoctypePublicAndSystemIdentifiers
,