parser/html/nsHtml5TokenizerHSupplement.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/html/nsHtml5TokenizerHSupplement.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,138 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +inline nsHtml5HtmlAttributes* GetAttributes()
     1.9 +{
    1.10 +  return attributes;
    1.11 +}
    1.12 +
    1.13 +nsAutoPtr<nsHtml5Highlighter> mViewSource;
    1.14 +
    1.15 +/**
    1.16 + * Starts handling text/plain. This is a one-way initialization. There is
    1.17 + * no corresponding EndPlainText() call.
    1.18 + */
    1.19 +void StartPlainText();
    1.20 +
    1.21 +void EnableViewSource(nsHtml5Highlighter* aHighlighter);
    1.22 +
    1.23 +bool FlushViewSource();
    1.24 +
    1.25 +void StartViewSource(const nsAutoString& aTitle);
    1.26 +
    1.27 +void EndViewSource();
    1.28 +
    1.29 +void errGarbageAfterLtSlash();
    1.30 +
    1.31 +void errLtSlashGt();
    1.32 +
    1.33 +void errWarnLtSlashInRcdata();
    1.34 +
    1.35 +void errCharRefLacksSemicolon();
    1.36 +
    1.37 +void errNoDigitsInNCR();
    1.38 +
    1.39 +void errGtInSystemId();
    1.40 +
    1.41 +void errGtInPublicId();
    1.42 +
    1.43 +void errNamelessDoctype();
    1.44 +
    1.45 +void errConsecutiveHyphens();
    1.46 +
    1.47 +void errPrematureEndOfComment();
    1.48 +
    1.49 +void errBogusComment();
    1.50 +
    1.51 +void errUnquotedAttributeValOrNull(char16_t c);
    1.52 +
    1.53 +void errSlashNotFollowedByGt();
    1.54 +
    1.55 +void errNoSpaceBetweenAttributes();
    1.56 +
    1.57 +void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
    1.58 +
    1.59 +void errAttributeValueMissing();
    1.60 +
    1.61 +void errBadCharBeforeAttributeNameOrNull(char16_t c);
    1.62 +
    1.63 +void errEqualsSignBeforeAttributeName();
    1.64 +
    1.65 +void errBadCharAfterLt(char16_t c);
    1.66 +
    1.67 +void errLtGt();
    1.68 +
    1.69 +void errProcessingInstruction();
    1.70 +
    1.71 +void errUnescapedAmpersandInterpretedAsCharacterReference();
    1.72 +
    1.73 +void errNotSemicolonTerminated();
    1.74 +
    1.75 +void errNoNamedCharacterMatch();
    1.76 +
    1.77 +void errQuoteBeforeAttributeName(char16_t c);
    1.78 +
    1.79 +void errQuoteOrLtInAttributeNameOrNull(char16_t c);
    1.80 +
    1.81 +void errExpectedPublicId();
    1.82 +
    1.83 +void errBogusDoctype();
    1.84 +
    1.85 +void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
    1.86 +
    1.87 +void maybeErrSlashInEndTag(bool selfClosing);
    1.88 +
    1.89 +char16_t errNcrNonCharacter(char16_t ch);
    1.90 +
    1.91 +void errAstralNonCharacter(int32_t ch);
    1.92 +
    1.93 +void errNcrSurrogate();
    1.94 +
    1.95 +char16_t errNcrControlChar(char16_t ch);
    1.96 +
    1.97 +void errNcrCr();
    1.98 +
    1.99 +void errNcrInC1Range();
   1.100 +
   1.101 +void errEofInPublicId();
   1.102 +
   1.103 +void errEofInComment();
   1.104 +
   1.105 +void errEofInDoctype();
   1.106 +
   1.107 +void errEofInAttributeValue();
   1.108 +
   1.109 +void errEofInAttributeName();
   1.110 +
   1.111 +void errEofWithoutGt();
   1.112 +
   1.113 +void errEofInTagName();
   1.114 +
   1.115 +void errEofInEndTag();
   1.116 +
   1.117 +void errEofAfterLt();
   1.118 +
   1.119 +void errNcrOutOfRange();
   1.120 +
   1.121 +void errNcrUnassigned();
   1.122 +
   1.123 +void errDuplicateAttribute();
   1.124 +
   1.125 +void errEofInSystemId();
   1.126 +
   1.127 +void errExpectedSystemId();
   1.128 +
   1.129 +void errMissingSpaceBeforeDoctypeName();
   1.130 +
   1.131 +void errHyphenHyphenBang();
   1.132 +
   1.133 +void errNcrControlChar();
   1.134 +
   1.135 +void errNcrZero();
   1.136 +
   1.137 +void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
   1.138 +
   1.139 +void errNoSpaceBetweenPublicAndSystemIds();
   1.140 +
   1.141 +void errNoSpaceBetweenDoctypePublicKeywordAndQuote();

mercurial