Bug 1468361 [wpt PR 11478] - Add test run time to wptreport.json format, a=testonly
[gecko.git] / parser / html / nsHtml5TokenizerHSupplement.h
blob6834b0b8dbc1f75f55d00f39b25425bf3b2ff288
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 inline nsHtml5HtmlAttributes*
6 GetAttributes()
8 return attributes;
11 /**
12 * Makes sure the buffers are large enough to be able to tokenize aLength
13 * UTF-16 code units before having to make the buffers larger.
15 * @param aLength the number of UTF-16 code units to be tokenized before the
16 * next call to this method.
17 * @return true if successful; false if out of memory
19 bool
20 EnsureBufferSpace(int32_t aLength);
22 nsAutoPtr<nsHtml5Highlighter> mViewSource;
24 /**
25 * Starts handling text/plain. This is a one-way initialization. There is
26 * no corresponding EndPlainText() call.
28 void
29 StartPlainText();
31 void
32 EnableViewSource(nsHtml5Highlighter* aHighlighter);
34 bool
35 FlushViewSource();
37 void
38 StartViewSource(const nsAutoString& aTitle);
40 void
41 EndViewSource();
43 void
44 errGarbageAfterLtSlash();
46 void
47 errLtSlashGt();
49 void
50 errWarnLtSlashInRcdata();
52 void
53 errCharRefLacksSemicolon();
55 void
56 errNoDigitsInNCR();
58 void
59 errGtInSystemId();
61 void
62 errGtInPublicId();
64 void
65 errNamelessDoctype();
67 void
68 errConsecutiveHyphens();
70 void
71 errPrematureEndOfComment();
73 void
74 errBogusComment();
76 void
77 errUnquotedAttributeValOrNull(char16_t c);
79 void
80 errSlashNotFollowedByGt();
82 void
83 errNoSpaceBetweenAttributes();
85 void
86 errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
88 void
89 errAttributeValueMissing();
91 void
92 errBadCharBeforeAttributeNameOrNull(char16_t c);
94 void
95 errEqualsSignBeforeAttributeName();
97 void
98 errBadCharAfterLt(char16_t c);
100 void
101 errLtGt();
103 void
104 errProcessingInstruction();
106 void
107 errUnescapedAmpersandInterpretedAsCharacterReference();
109 void
110 errNotSemicolonTerminated();
112 void
113 errNoNamedCharacterMatch();
115 void
116 errQuoteBeforeAttributeName(char16_t c);
118 void
119 errQuoteOrLtInAttributeNameOrNull(char16_t c);
121 void
122 errExpectedPublicId();
124 void
125 errBogusDoctype();
127 void
128 maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
130 void
131 maybeErrSlashInEndTag(bool selfClosing);
133 char16_t
134 errNcrNonCharacter(char16_t ch);
136 void
137 errAstralNonCharacter(int32_t ch);
139 void
140 errNcrSurrogate();
142 char16_t
143 errNcrControlChar(char16_t ch);
145 void
146 errNcrCr();
148 void
149 errNcrInC1Range();
151 void
152 errEofInPublicId();
154 void
155 errEofInComment();
157 void
158 errEofInDoctype();
160 void
161 errEofInAttributeValue();
163 void
164 errEofInAttributeName();
166 void
167 errEofWithoutGt();
169 void
170 errEofInTagName();
172 void
173 errEofInEndTag();
175 void
176 errEofAfterLt();
178 void
179 errNcrOutOfRange();
181 void
182 errNcrUnassigned();
184 void
185 errDuplicateAttribute();
187 void
188 errEofInSystemId();
190 void
191 errExpectedSystemId();
193 void
194 errMissingSpaceBeforeDoctypeName();
196 void
197 errHyphenHyphenBang();
199 void
200 errNcrControlChar();
202 void
203 errNcrZero();
205 void
206 errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
208 void
209 errNoSpaceBetweenPublicAndSystemIds();
211 void
212 errNoSpaceBetweenDoctypePublicKeywordAndQuote();