| 1 |
/** |
| 2 |
* The subset of the parser states defined in https://www.w3.org/TR/html51/syntax.html |
| 3 |
* which are useful for Autolinker. |
| 4 |
*/ |
| 5 |
export declare const enum State { |
| 6 |
Data = 0, |
| 7 |
TagOpen = 1, |
| 8 |
EndTagOpen = 2, |
| 9 |
TagName = 3, |
| 10 |
BeforeAttributeName = 4, |
| 11 |
AttributeName = 5, |
| 12 |
AfterAttributeName = 6, |
| 13 |
BeforeAttributeValue = 7, |
| 14 |
AttributeValueDoubleQuoted = 8, |
| 15 |
AttributeValueSingleQuoted = 9, |
| 16 |
AttributeValueUnquoted = 10, |
| 17 |
AfterAttributeValueQuoted = 11, |
| 18 |
SelfClosingStartTag = 12, |
| 19 |
MarkupDeclarationOpenState = 13, |
| 20 |
CommentStart = 14, |
| 21 |
CommentStartDash = 15, |
| 22 |
Comment = 16, |
| 23 |
CommentEndDash = 17, |
| 24 |
CommentEnd = 18, |
| 25 |
CommentEndBang = 19, |
| 26 |
Doctype = 20 |
| 27 |
} |