parser/html/nsHtml5TokenizerHSupplement.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 inline nsHtml5HtmlAttributes* GetAttributes()
michael@0 6 {
michael@0 7 return attributes;
michael@0 8 }
michael@0 9
michael@0 10 nsAutoPtr<nsHtml5Highlighter> mViewSource;
michael@0 11
michael@0 12 /**
michael@0 13 * Starts handling text/plain. This is a one-way initialization. There is
michael@0 14 * no corresponding EndPlainText() call.
michael@0 15 */
michael@0 16 void StartPlainText();
michael@0 17
michael@0 18 void EnableViewSource(nsHtml5Highlighter* aHighlighter);
michael@0 19
michael@0 20 bool FlushViewSource();
michael@0 21
michael@0 22 void StartViewSource(const nsAutoString& aTitle);
michael@0 23
michael@0 24 void EndViewSource();
michael@0 25
michael@0 26 void errGarbageAfterLtSlash();
michael@0 27
michael@0 28 void errLtSlashGt();
michael@0 29
michael@0 30 void errWarnLtSlashInRcdata();
michael@0 31
michael@0 32 void errCharRefLacksSemicolon();
michael@0 33
michael@0 34 void errNoDigitsInNCR();
michael@0 35
michael@0 36 void errGtInSystemId();
michael@0 37
michael@0 38 void errGtInPublicId();
michael@0 39
michael@0 40 void errNamelessDoctype();
michael@0 41
michael@0 42 void errConsecutiveHyphens();
michael@0 43
michael@0 44 void errPrematureEndOfComment();
michael@0 45
michael@0 46 void errBogusComment();
michael@0 47
michael@0 48 void errUnquotedAttributeValOrNull(char16_t c);
michael@0 49
michael@0 50 void errSlashNotFollowedByGt();
michael@0 51
michael@0 52 void errNoSpaceBetweenAttributes();
michael@0 53
michael@0 54 void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
michael@0 55
michael@0 56 void errAttributeValueMissing();
michael@0 57
michael@0 58 void errBadCharBeforeAttributeNameOrNull(char16_t c);
michael@0 59
michael@0 60 void errEqualsSignBeforeAttributeName();
michael@0 61
michael@0 62 void errBadCharAfterLt(char16_t c);
michael@0 63
michael@0 64 void errLtGt();
michael@0 65
michael@0 66 void errProcessingInstruction();
michael@0 67
michael@0 68 void errUnescapedAmpersandInterpretedAsCharacterReference();
michael@0 69
michael@0 70 void errNotSemicolonTerminated();
michael@0 71
michael@0 72 void errNoNamedCharacterMatch();
michael@0 73
michael@0 74 void errQuoteBeforeAttributeName(char16_t c);
michael@0 75
michael@0 76 void errQuoteOrLtInAttributeNameOrNull(char16_t c);
michael@0 77
michael@0 78 void errExpectedPublicId();
michael@0 79
michael@0 80 void errBogusDoctype();
michael@0 81
michael@0 82 void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
michael@0 83
michael@0 84 void maybeErrSlashInEndTag(bool selfClosing);
michael@0 85
michael@0 86 char16_t errNcrNonCharacter(char16_t ch);
michael@0 87
michael@0 88 void errAstralNonCharacter(int32_t ch);
michael@0 89
michael@0 90 void errNcrSurrogate();
michael@0 91
michael@0 92 char16_t errNcrControlChar(char16_t ch);
michael@0 93
michael@0 94 void errNcrCr();
michael@0 95
michael@0 96 void errNcrInC1Range();
michael@0 97
michael@0 98 void errEofInPublicId();
michael@0 99
michael@0 100 void errEofInComment();
michael@0 101
michael@0 102 void errEofInDoctype();
michael@0 103
michael@0 104 void errEofInAttributeValue();
michael@0 105
michael@0 106 void errEofInAttributeName();
michael@0 107
michael@0 108 void errEofWithoutGt();
michael@0 109
michael@0 110 void errEofInTagName();
michael@0 111
michael@0 112 void errEofInEndTag();
michael@0 113
michael@0 114 void errEofAfterLt();
michael@0 115
michael@0 116 void errNcrOutOfRange();
michael@0 117
michael@0 118 void errNcrUnassigned();
michael@0 119
michael@0 120 void errDuplicateAttribute();
michael@0 121
michael@0 122 void errEofInSystemId();
michael@0 123
michael@0 124 void errExpectedSystemId();
michael@0 125
michael@0 126 void errMissingSpaceBeforeDoctypeName();
michael@0 127
michael@0 128 void errHyphenHyphenBang();
michael@0 129
michael@0 130 void errNcrControlChar();
michael@0 131
michael@0 132 void errNcrZero();
michael@0 133
michael@0 134 void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
michael@0 135
michael@0 136 void errNoSpaceBetweenPublicAndSystemIds();
michael@0 137
michael@0 138 void errNoSpaceBetweenDoctypePublicKeywordAndQuote();

mercurial