2012-05-29 19:52:43 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-07-30 14:15:38 +04:00
|
|
|
|
|
|
|
nsAutoPtr<nsHtml5Highlighter> mViewSource;
|
|
|
|
|
2011-11-01 19:27:36 +04:00
|
|
|
/**
|
|
|
|
* Starts handling text/plain. This is a one-way initialization. There is
|
|
|
|
* no corresponding EndPlainText() call.
|
|
|
|
*/
|
|
|
|
void StartPlainText();
|
|
|
|
|
2010-07-30 14:15:38 +04:00
|
|
|
void EnableViewSource(nsHtml5Highlighter* aHighlighter);
|
|
|
|
|
|
|
|
bool FlushViewSource();
|
|
|
|
|
2011-11-30 21:44:31 +04:00
|
|
|
void StartViewSource(const nsAutoString& aTitle);
|
2010-07-30 14:15:38 +04:00
|
|
|
|
|
|
|
void EndViewSource();
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errGarbageAfterLtSlash();
|
|
|
|
|
|
|
|
void errLtSlashGt();
|
|
|
|
|
|
|
|
void errWarnLtSlashInRcdata();
|
|
|
|
|
|
|
|
void errCharRefLacksSemicolon();
|
|
|
|
|
|
|
|
void errNoDigitsInNCR();
|
|
|
|
|
|
|
|
void errGtInSystemId();
|
|
|
|
|
|
|
|
void errGtInPublicId();
|
|
|
|
|
|
|
|
void errNamelessDoctype();
|
|
|
|
|
|
|
|
void errConsecutiveHyphens();
|
|
|
|
|
|
|
|
void errPrematureEndOfComment();
|
|
|
|
|
|
|
|
void errBogusComment();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
void errUnquotedAttributeValOrNull(char16_t c);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errSlashNotFollowedByGt();
|
|
|
|
|
|
|
|
void errNoSpaceBetweenAttributes();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
void errLtOrEqualsOrGraveInUnquotedAttributeOrNull(char16_t c);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errAttributeValueMissing();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
void errBadCharBeforeAttributeNameOrNull(char16_t c);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errEqualsSignBeforeAttributeName();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
void errBadCharAfterLt(char16_t c);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errLtGt();
|
|
|
|
|
|
|
|
void errProcessingInstruction();
|
|
|
|
|
|
|
|
void errUnescapedAmpersandInterpretedAsCharacterReference();
|
|
|
|
|
|
|
|
void errNotSemicolonTerminated();
|
|
|
|
|
|
|
|
void errNoNamedCharacterMatch();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
void errQuoteBeforeAttributeName(char16_t c);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
void errQuoteOrLtInAttributeNameOrNull(char16_t c);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errExpectedPublicId();
|
|
|
|
|
|
|
|
void errBogusDoctype();
|
|
|
|
|
|
|
|
void maybeErrAttributesOnEndTag(nsHtml5HtmlAttributes* attrs);
|
|
|
|
|
|
|
|
void maybeErrSlashInEndTag(bool selfClosing);
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
char16_t errNcrNonCharacter(char16_t ch);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
void errAstralNonCharacter(int32_t ch);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errNcrSurrogate();
|
|
|
|
|
2014-01-04 19:02:17 +04:00
|
|
|
char16_t errNcrControlChar(char16_t ch);
|
2011-11-01 15:33:11 +04:00
|
|
|
|
|
|
|
void errNcrCr();
|
|
|
|
|
|
|
|
void errNcrInC1Range();
|
|
|
|
|
|
|
|
void errEofInPublicId();
|
|
|
|
|
|
|
|
void errEofInComment();
|
|
|
|
|
|
|
|
void errEofInDoctype();
|
|
|
|
|
|
|
|
void errEofInAttributeValue();
|
|
|
|
|
|
|
|
void errEofInAttributeName();
|
|
|
|
|
|
|
|
void errEofWithoutGt();
|
|
|
|
|
|
|
|
void errEofInTagName();
|
|
|
|
|
|
|
|
void errEofInEndTag();
|
|
|
|
|
|
|
|
void errEofAfterLt();
|
|
|
|
|
|
|
|
void errNcrOutOfRange();
|
|
|
|
|
|
|
|
void errNcrUnassigned();
|
|
|
|
|
|
|
|
void errDuplicateAttribute();
|
|
|
|
|
|
|
|
void errEofInSystemId();
|
|
|
|
|
|
|
|
void errExpectedSystemId();
|
|
|
|
|
|
|
|
void errMissingSpaceBeforeDoctypeName();
|
|
|
|
|
|
|
|
void errHyphenHyphenBang();
|
|
|
|
|
|
|
|
void errNcrControlChar();
|
|
|
|
|
|
|
|
void errNcrZero();
|
|
|
|
|
|
|
|
void errNoSpaceBetweenDoctypeSystemKeywordAndQuote();
|
|
|
|
|
|
|
|
void errNoSpaceBetweenPublicAndSystemIds();
|
|
|
|
|
|
|
|
void errNoSpaceBetweenDoctypePublicKeywordAndQuote();
|