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
*
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
20 EnsureBufferSpace(int32_t aLength
);
22 nsAutoPtr
<nsHtml5Highlighter
> mViewSource
;
25 * Starts handling text/plain. This is a one-way initialization. There is
26 * no corresponding EndPlainText() call.
32 EnableViewSource(nsHtml5Highlighter
* aHighlighter
);
38 StartViewSource(const nsAutoString
& aTitle
);
44 errGarbageAfterLtSlash();
50 errWarnLtSlashInRcdata();
53 errCharRefLacksSemicolon();
68 errConsecutiveHyphens();
71 errPrematureEndOfComment();
77 errUnquotedAttributeValOrNull(char16_t c
);
80 errSlashNotFollowedByGt();
83 errNoSpaceBetweenAttributes();
86 errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c
);
89 errAttributeValueMissing();
92 errBadCharBeforeAttributeNameOrNull(char16_t c
);
95 errEqualsSignBeforeAttributeName();
98 errBadCharAfterLt(char16_t c
);
104 errProcessingInstruction();
107 errUnescapedAmpersandInterpretedAsCharacterReference();
110 errNotSemicolonTerminated();
113 errNoNamedCharacterMatch();
116 errQuoteBeforeAttributeName(char16_t c
);
119 errQuoteOrLtInAttributeNameOrNull(char16_t c
);
122 errExpectedPublicId();
128 maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes
* attrs
);
131 maybeErrSlashInEndTag(bool selfClosing
);
134 errNcrNonCharacter(char16_t ch
);
137 errAstralNonCharacter(int32_t ch
);
143 errNcrControlChar(char16_t ch
);
161 errEofInAttributeValue();
164 errEofInAttributeName();
185 errDuplicateAttribute();
191 errExpectedSystemId();
194 errMissingSpaceBeforeDoctypeName();
197 errHyphenHyphenBang();
206 errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
209 errNoSpaceBetweenPublicAndSystemIds();
212 errNoSpaceBetweenDoctypePublicKeywordAndQuote();