Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
[gecko.git] / parser / html / nsHtml5TokenizerHSupplement.h
blob2bb89651cb8c25ca64636dce581ecfdf3b999e3f
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 nsAutoPtr<nsHtml5Highlighter> mViewSource;
7 /**
8 * Starts handling text/plain. This is a one-way initialization. There is
9 * no corresponding EndPlainText() call.
11 void StartPlainText();
13 void EnableViewSource(nsHtml5Highlighter* aHighlighter);
15 bool FlushViewSource();
17 void StartViewSource(const nsAutoString& aTitle);
19 void EndViewSource();
21 void errGarbageAfterLtSlash();
23 void errLtSlashGt();
25 void errWarnLtSlashInRcdata();
27 void errCharRefLacksSemicolon();
29 void errNoDigitsInNCR();
31 void errGtInSystemId();
33 void errGtInPublicId();
35 void errNamelessDoctype();
37 void errConsecutiveHyphens();
39 void errPrematureEndOfComment();
41 void errBogusComment();
43 void errUnquotedAttributeValOrNull(PRUnichar c);
45 void errSlashNotFollowedByGt();
47 void errNoSpaceBetweenAttributes();
49 void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(PRUnichar c);
51 void errAttributeValueMissing();
53 void errBadCharBeforeAttributeNameOrNull(PRUnichar c);
55 void errEqualsSignBeforeAttributeName();
57 void errBadCharAfterLt(PRUnichar c);
59 void errLtGt();
61 void errProcessingInstruction();
63 void errUnescapedAmpersandInterpretedAsCharacterReference();
65 void errNotSemicolonTerminated();
67 void errNoNamedCharacterMatch();
69 void errQuoteBeforeAttributeName(PRUnichar c);
71 void errQuoteOrLtInAttributeNameOrNull(PRUnichar c);
73 void errExpectedPublicId();
75 void errBogusDoctype();
77 void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
79 void maybeErrSlashInEndTag(bool selfClosing);
81 PRUnichar errNcrNonCharacter(PRUnichar ch);
83 void errAstralNonCharacter(int32_t ch);
85 void errNcrSurrogate();
87 PRUnichar errNcrControlChar(PRUnichar ch);
89 void errNcrCr();
91 void errNcrInC1Range();
93 void errEofInPublicId();
95 void errEofInComment();
97 void errEofInDoctype();
99 void errEofInAttributeValue();
101 void errEofInAttributeName();
103 void errEofWithoutGt();
105 void errEofInTagName();
107 void errEofInEndTag();
109 void errEofAfterLt();
111 void errNcrOutOfRange();
113 void errNcrUnassigned();
115 void errDuplicateAttribute();
117 void errEofInSystemId();
119 void errExpectedSystemId();
121 void errMissingSpaceBeforeDoctypeName();
123 void errHyphenHyphenBang();
125 void errNcrControlChar();
127 void errNcrZero();
129 void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
131 void errNoSpaceBetweenPublicAndSystemIds();
133 void errNoSpaceBetweenDoctypePublicKeywordAndQuote();