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/. */
4 
GetAttributes()5 inline nsHtml5HtmlAttributes* GetAttributes() { return attributes; }
6 
7 /**
8  * Makes sure the buffers are large enough to be able to tokenize aLength
9  * UTF-16 code units before having to make the buffers larger.
10  *
11  * @param aLength the number of UTF-16 code units to be tokenized before the
12  *                next call to this method.
13  * @return true if successful; false if out of memory
14  */
15 bool EnsureBufferSpace(int32_t aLength);
16 
17 mozilla::UniquePtr<nsHtml5Highlighter> mViewSource;
18 
19 /**
20  * Starts handling text/plain. This is a one-way initialization. There is
21  * no corresponding EndPlainText() call.
22  */
23 void StartPlainText();
24 
25 void EnableViewSource(nsHtml5Highlighter* aHighlighter);
26 
27 bool FlushViewSource();
28 
29 void StartViewSource(const nsAutoString& aTitle);
30 
31 void EndViewSource();
32 
33 void errGarbageAfterLtSlash();
34 
35 void errLtSlashGt();
36 
37 void errWarnLtSlashInRcdata();
38 
39 void errCharRefLacksSemicolon();
40 
41 void errNoDigitsInNCR();
42 
43 void errGtInSystemId();
44 
45 void errGtInPublicId();
46 
47 void errNamelessDoctype();
48 
49 void errConsecutiveHyphens();
50 
51 void errPrematureEndOfComment();
52 
53 void errBogusComment();
54 
55 void errUnquotedAttributeValOrNull(char16_t c);
56 
57 void errSlashNotFollowedByGt();
58 
59 void errNoSpaceBetweenAttributes();
60 
61 void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
62 
63 void errAttributeValueMissing();
64 
65 void errBadCharBeforeAttributeNameOrNull(char16_t c);
66 
67 void errEqualsSignBeforeAttributeName();
68 
69 void errBadCharAfterLt(char16_t c);
70 
71 void errLtGt();
72 
73 void errProcessingInstruction();
74 
75 void errUnescapedAmpersandInterpretedAsCharacterReference();
76 
77 void errNotSemicolonTerminated();
78 
79 void errNoNamedCharacterMatch();
80 
81 void errQuoteBeforeAttributeName(char16_t c);
82 
83 void errQuoteOrLtInAttributeNameOrNull(char16_t c);
84 
85 void errExpectedPublicId();
86 
87 void errBogusDoctype();
88 
89 void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
90 
91 void maybeErrSlashInEndTag(bool selfClosing);
92 
93 char16_t errNcrNonCharacter(char16_t ch);
94 
95 void errAstralNonCharacter(int32_t ch);
96 
97 void errNcrSurrogate();
98 
99 char16_t errNcrControlChar(char16_t ch);
100 
101 void errNcrCr();
102 
103 void errNcrInC1Range();
104 
105 void errEofInPublicId();
106 
107 void errEofInComment();
108 
109 void errEofInDoctype();
110 
111 void errEofInAttributeValue();
112 
113 void errEofInAttributeName();
114 
115 void errEofWithoutGt();
116 
117 void errEofInTagName();
118 
119 void errEofInEndTag();
120 
121 void errEofAfterLt();
122 
123 void errNcrOutOfRange();
124 
125 void errNcrUnassigned();
126 
127 void errDuplicateAttribute();
128 
129 void errEofInSystemId();
130 
131 void errExpectedSystemId();
132 
133 void errMissingSpaceBeforeDoctypeName();
134 
135 void errHyphenHyphenBang();
136 
137 void errNcrControlChar();
138 
139 void errNcrZero();
140 
141 void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
142 
143 void errNoSpaceBetweenPublicAndSystemIds();
144 
145 void errNoSpaceBetweenDoctypePublicKeywordAndQuote();
146