main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
709 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.