Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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* GetAttributes()
6 {
7 return attributes;
8 }
10 nsAutoPtr<nsHtml5Highlighter> mViewSource;
12 /**
13 * Starts handling text/plain. This is a one-way initialization. There is
14 * no corresponding EndPlainText() call.
15 */
16 void StartPlainText();
18 void EnableViewSource(nsHtml5Highlighter* aHighlighter);
20 bool FlushViewSource();
22 void StartViewSource(const nsAutoString& aTitle);
24 void EndViewSource();
26 void errGarbageAfterLtSlash();
28 void errLtSlashGt();
30 void errWarnLtSlashInRcdata();
32 void errCharRefLacksSemicolon();
34 void errNoDigitsInNCR();
36 void errGtInSystemId();
38 void errGtInPublicId();
40 void errNamelessDoctype();
42 void errConsecutiveHyphens();
44 void errPrematureEndOfComment();
46 void errBogusComment();
48 void errUnquotedAttributeValOrNull(char16_t c);
50 void errSlashNotFollowedByGt();
52 void errNoSpaceBetweenAttributes();
54 void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
56 void errAttributeValueMissing();
58 void errBadCharBeforeAttributeNameOrNull(char16_t c);
60 void errEqualsSignBeforeAttributeName();
62 void errBadCharAfterLt(char16_t c);
64 void errLtGt();
66 void errProcessingInstruction();
68 void errUnescapedAmpersandInterpretedAsCharacterReference();
70 void errNotSemicolonTerminated();
72 void errNoNamedCharacterMatch();
74 void errQuoteBeforeAttributeName(char16_t c);
76 void errQuoteOrLtInAttributeNameOrNull(char16_t c);
78 void errExpectedPublicId();
80 void errBogusDoctype();
82 void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
84 void maybeErrSlashInEndTag(bool selfClosing);
86 char16_t errNcrNonCharacter(char16_t ch);
88 void errAstralNonCharacter(int32_t ch);
90 void errNcrSurrogate();
92 char16_t errNcrControlChar(char16_t ch);
94 void errNcrCr();
96 void errNcrInC1Range();
98 void errEofInPublicId();
100 void errEofInComment();
102 void errEofInDoctype();
104 void errEofInAttributeValue();
106 void errEofInAttributeName();
108 void errEofWithoutGt();
110 void errEofInTagName();
112 void errEofInEndTag();
114 void errEofAfterLt();
116 void errNcrOutOfRange();
118 void errNcrUnassigned();
120 void errDuplicateAttribute();
122 void errEofInSystemId();
124 void errExpectedSystemId();
126 void errMissingSpaceBeforeDoctypeName();
128 void errHyphenHyphenBang();
130 void errNcrControlChar();
132 void errNcrZero();
134 void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
136 void errNoSpaceBetweenPublicAndSystemIds();
138 void errNoSpaceBetweenDoctypePublicKeywordAndQuote();