2009-06-28 22:44:22 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2005-2007 Henri Sivonen
|
2013-06-06 08:02:30 +00:00
|
|
|
* Copyright (c) 2007-2013 Mozilla Foundation
|
2010-06-02 11:01:57 +00:00
|
|
|
* Portions of comments Copyright 2004-2010 Apple Computer, Inc., Mozilla
|
2009-06-28 22:44:22 +00:00
|
|
|
* Foundation, and Opera Software ASA.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
|
|
|
|
* Please edit Tokenizer.java instead and regenerate.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsHtml5Tokenizer_h__
|
|
|
|
#define nsHtml5Tokenizer_h__
|
|
|
|
|
|
|
|
#include "nsIAtom.h"
|
2009-09-21 11:43:43 +00:00
|
|
|
#include "nsHtml5AtomTable.h"
|
2009-06-28 22:44:22 +00:00
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIContent.h"
|
|
|
|
#include "nsTraceRefcnt.h"
|
|
|
|
#include "jArray.h"
|
|
|
|
#include "nsHtml5DocumentMode.h"
|
|
|
|
#include "nsHtml5ArrayCopy.h"
|
|
|
|
#include "nsHtml5NamedCharacters.h"
|
2010-06-24 08:54:33 +00:00
|
|
|
#include "nsHtml5NamedCharactersAccel.h"
|
2009-06-28 22:44:22 +00:00
|
|
|
#include "nsHtml5Atoms.h"
|
2009-09-21 13:18:20 +00:00
|
|
|
#include "nsAHtml5TreeBuilderState.h"
|
2010-04-19 13:25:13 +00:00
|
|
|
#include "nsHtml5Macros.h"
|
2010-07-30 10:15:38 +00:00
|
|
|
#include "nsHtml5Highlighter.h"
|
2011-11-01 11:33:11 +00:00
|
|
|
#include "nsHtml5TokenizerLoopPolicies.h"
|
2009-06-28 22:44:22 +00:00
|
|
|
|
2009-09-18 09:21:47 +00:00
|
|
|
class nsHtml5StreamParser;
|
2009-06-28 22:44:22 +00:00
|
|
|
|
|
|
|
class nsHtml5TreeBuilder;
|
|
|
|
class nsHtml5MetaScanner;
|
|
|
|
class nsHtml5AttributeName;
|
|
|
|
class nsHtml5ElementName;
|
|
|
|
class nsHtml5HtmlAttributes;
|
|
|
|
class nsHtml5UTF16Buffer;
|
|
|
|
class nsHtml5StateSnapshot;
|
|
|
|
class nsHtml5Portability;
|
|
|
|
|
|
|
|
|
|
|
|
class nsHtml5Tokenizer
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static PRUnichar LT_GT[];
|
|
|
|
static PRUnichar LT_SOLIDUS[];
|
|
|
|
static PRUnichar RSQB_RSQB[];
|
|
|
|
static PRUnichar REPLACEMENT_CHARACTER[];
|
|
|
|
static PRUnichar LF[];
|
|
|
|
static PRUnichar CDATA_LSQB[];
|
|
|
|
static PRUnichar OCTYPE[];
|
|
|
|
static PRUnichar UBLIC[];
|
|
|
|
static PRUnichar YSTEM[];
|
2012-08-22 15:56:38 +00:00
|
|
|
static staticJArray<PRUnichar,int32_t> TITLE_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> SCRIPT_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> STYLE_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> PLAINTEXT_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> XMP_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> TEXTAREA_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> IFRAME_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> NOEMBED_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> NOSCRIPT_ARR;
|
|
|
|
static staticJArray<PRUnichar,int32_t> NOFRAMES_ARR;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
|
|
|
nsHtml5TreeBuilder* tokenHandler;
|
2010-04-16 10:52:06 +00:00
|
|
|
nsHtml5StreamParser* encodingDeclarationHandler;
|
2011-09-29 06:19:26 +00:00
|
|
|
bool lastCR;
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t stateSave;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t returnStateSave;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t index;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2011-09-29 06:19:26 +00:00
|
|
|
bool forceQuirks;
|
2009-06-28 22:44:22 +00:00
|
|
|
PRUnichar additional;
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t entCol;
|
|
|
|
int32_t firstCharKey;
|
|
|
|
int32_t lo;
|
|
|
|
int32_t hi;
|
|
|
|
int32_t candidate;
|
|
|
|
int32_t strBufMark;
|
|
|
|
int32_t prevValue;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t value;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2011-09-29 06:19:26 +00:00
|
|
|
bool seenDigits;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t cstart;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
|
|
|
nsString* publicId;
|
|
|
|
nsString* systemId;
|
2012-08-22 15:56:38 +00:00
|
|
|
autoJArray<PRUnichar,int32_t> strBuf;
|
|
|
|
int32_t strBufLen;
|
|
|
|
autoJArray<PRUnichar,int32_t> longStrBuf;
|
|
|
|
int32_t longStrBufLen;
|
|
|
|
autoJArray<PRUnichar,int32_t> bmpChar;
|
|
|
|
autoJArray<PRUnichar,int32_t> astralChar;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2010-04-16 10:52:06 +00:00
|
|
|
nsHtml5ElementName* endTagExpectation;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
jArray<PRUnichar,int32_t> endTagExpectationAsArray;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2011-09-29 06:19:26 +00:00
|
|
|
bool endTag;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
|
|
|
nsHtml5ElementName* tagName;
|
|
|
|
protected:
|
|
|
|
nsHtml5AttributeName* attributeName;
|
|
|
|
private:
|
|
|
|
nsIAtom* doctypeName;
|
|
|
|
nsString* publicIdentifier;
|
|
|
|
nsString* systemIdentifier;
|
2009-09-21 13:18:20 +00:00
|
|
|
nsHtml5HtmlAttributes* attributes;
|
2011-09-29 06:19:26 +00:00
|
|
|
bool shouldSuspend;
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2011-09-29 06:19:26 +00:00
|
|
|
bool confident;
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t line;
|
2009-09-21 11:43:43 +00:00
|
|
|
nsHtml5AtomTable* interner;
|
2011-11-01 11:33:11 +00:00
|
|
|
bool viewingXmlSource;
|
2009-06-28 22:44:22 +00:00
|
|
|
public:
|
2011-11-01 11:33:11 +00:00
|
|
|
nsHtml5Tokenizer(nsHtml5TreeBuilder* tokenHandler, bool viewingXmlSource);
|
2009-09-21 11:43:43 +00:00
|
|
|
void setInterner(nsHtml5AtomTable* interner);
|
2009-06-28 22:44:22 +00:00
|
|
|
void initLocation(nsString* newPublicId, nsString* newSystemId);
|
2011-11-01 11:33:11 +00:00
|
|
|
bool isViewingXmlSource();
|
2012-08-22 15:56:38 +00:00
|
|
|
void setStateAndEndTagExpectation(int32_t specialTokenizerState, nsIAtom* endTagExpectation);
|
|
|
|
void setStateAndEndTagExpectation(int32_t specialTokenizerState, nsHtml5ElementName* endTagExpectation);
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2010-04-16 10:52:06 +00:00
|
|
|
void endTagExpectationToArray();
|
2009-06-28 22:44:22 +00:00
|
|
|
public:
|
2012-08-22 15:56:38 +00:00
|
|
|
void setLineNumber(int32_t line);
|
|
|
|
inline int32_t getLineNumber()
|
2009-06-28 22:44:22 +00:00
|
|
|
{
|
|
|
|
return line;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsHtml5HtmlAttributes* emptyAttributes();
|
|
|
|
private:
|
2010-04-16 10:52:06 +00:00
|
|
|
inline void clearStrBufAndAppend(PRUnichar c)
|
|
|
|
{
|
|
|
|
strBuf[0] = c;
|
|
|
|
strBufLen = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void clearStrBuf()
|
|
|
|
{
|
|
|
|
strBufLen = 0;
|
|
|
|
}
|
|
|
|
|
2010-03-30 08:21:36 +00:00
|
|
|
void appendStrBuf(PRUnichar c);
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
|
|
|
nsString* strBufToString();
|
|
|
|
private:
|
|
|
|
void strBufToDoctypeName();
|
|
|
|
void emitStrBuf();
|
2010-04-16 10:52:06 +00:00
|
|
|
inline void clearLongStrBuf()
|
|
|
|
{
|
|
|
|
longStrBufLen = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void clearLongStrBufAndAppend(PRUnichar c)
|
|
|
|
{
|
|
|
|
longStrBuf[0] = c;
|
|
|
|
longStrBufLen = 1;
|
|
|
|
}
|
|
|
|
|
2010-03-30 08:21:36 +00:00
|
|
|
void appendLongStrBuf(PRUnichar c);
|
2010-04-16 10:52:06 +00:00
|
|
|
inline void appendSecondHyphenToBogusComment()
|
|
|
|
{
|
|
|
|
appendLongStrBuf('-');
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void adjustDoubleHyphenAndAppendToLongStrBufAndErr(PRUnichar c)
|
|
|
|
{
|
2011-11-01 11:33:11 +00:00
|
|
|
errConsecutiveHyphens();
|
2010-04-16 10:52:06 +00:00
|
|
|
appendLongStrBuf(c);
|
|
|
|
}
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
void appendLongStrBuf(PRUnichar* buffer, int32_t offset, int32_t length);
|
2010-04-16 10:52:06 +00:00
|
|
|
inline void appendStrBufToLongStrBuf()
|
|
|
|
{
|
|
|
|
appendLongStrBuf(strBuf, 0, strBufLen);
|
|
|
|
}
|
|
|
|
|
2009-06-28 22:44:22 +00:00
|
|
|
nsString* longStrBufToString();
|
2012-08-22 15:56:38 +00:00
|
|
|
void emitComment(int32_t provisionalHyphens, int32_t pos);
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2012-08-22 15:56:38 +00:00
|
|
|
void flushChars(PRUnichar* buf, int32_t pos);
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2010-03-30 08:21:36 +00:00
|
|
|
void resetAttributes();
|
2009-06-28 22:44:22 +00:00
|
|
|
void strBufToElementNameString();
|
2012-08-22 15:56:38 +00:00
|
|
|
int32_t emitCurrentTagToken(bool selfClosing, int32_t pos);
|
2009-06-28 22:44:22 +00:00
|
|
|
void attributeNameComplete();
|
|
|
|
void addAttributeWithoutValue();
|
|
|
|
void addAttributeWithValue();
|
|
|
|
public:
|
|
|
|
void start();
|
2011-09-29 06:19:26 +00:00
|
|
|
bool tokenizeBuffer(nsHtml5UTF16Buffer* buffer);
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
template<class P> int32_t stateLoop(int32_t state, PRUnichar c, int32_t pos, PRUnichar* buf, bool reconsume, int32_t returnState, int32_t endPos);
|
2009-09-21 13:18:20 +00:00
|
|
|
void initDoctypeFields();
|
2009-06-28 22:44:22 +00:00
|
|
|
inline void adjustDoubleHyphenAndAppendToLongStrBufCarriageReturn()
|
|
|
|
{
|
|
|
|
silentCarriageReturn();
|
2009-07-15 11:31:57 +00:00
|
|
|
adjustDoubleHyphenAndAppendToLongStrBufAndErr('\n');
|
2009-06-28 22:44:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void adjustDoubleHyphenAndAppendToLongStrBufLineFeed()
|
|
|
|
{
|
|
|
|
silentLineFeed();
|
2009-07-15 11:31:57 +00:00
|
|
|
adjustDoubleHyphenAndAppendToLongStrBufAndErr('\n');
|
2009-06-28 22:44:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void appendLongStrBufLineFeed()
|
|
|
|
{
|
|
|
|
silentLineFeed();
|
|
|
|
appendLongStrBuf('\n');
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void appendLongStrBufCarriageReturn()
|
|
|
|
{
|
|
|
|
silentCarriageReturn();
|
|
|
|
appendLongStrBuf('\n');
|
|
|
|
}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
inline void silentCarriageReturn()
|
|
|
|
{
|
|
|
|
++line;
|
2011-10-17 14:59:28 +00:00
|
|
|
lastCR = true;
|
2009-06-28 22:44:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void silentLineFeed()
|
|
|
|
{
|
|
|
|
++line;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
void emitCarriageReturn(PRUnichar* buf, int32_t pos);
|
|
|
|
void emitReplacementCharacter(PRUnichar* buf, int32_t pos);
|
|
|
|
void emitPlaintextReplacementCharacter(PRUnichar* buf, int32_t pos);
|
2010-04-16 10:52:06 +00:00
|
|
|
void setAdditionalAndRememberAmpersandLocation(PRUnichar add);
|
2009-06-28 22:44:22 +00:00
|
|
|
void bogusDoctype();
|
|
|
|
void bogusDoctypeWithoutQuirks();
|
2012-08-22 15:56:38 +00:00
|
|
|
void emitOrAppendStrBuf(int32_t returnState);
|
|
|
|
void handleNcrValue(int32_t returnState);
|
2009-06-28 22:44:22 +00:00
|
|
|
public:
|
|
|
|
void eof();
|
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
void emitDoctypeToken(int32_t pos);
|
2009-06-28 22:44:22 +00:00
|
|
|
protected:
|
2012-08-22 15:56:38 +00:00
|
|
|
inline PRUnichar checkChar(PRUnichar* buf, int32_t pos)
|
2009-06-28 22:44:22 +00:00
|
|
|
{
|
|
|
|
return buf[pos];
|
|
|
|
}
|
|
|
|
|
|
|
|
public:
|
2011-09-29 06:19:26 +00:00
|
|
|
bool internalEncodingDeclaration(nsString* internalCharset);
|
2009-06-28 22:44:22 +00:00
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
void emitOrAppendTwo(const PRUnichar* val, int32_t returnState);
|
|
|
|
void emitOrAppendOne(const PRUnichar* val, int32_t returnState);
|
2009-06-28 22:44:22 +00:00
|
|
|
public:
|
|
|
|
void end();
|
|
|
|
void requestSuspension();
|
2011-09-29 06:19:26 +00:00
|
|
|
bool isInDataState();
|
2009-09-21 13:18:20 +00:00
|
|
|
void resetToDataState();
|
|
|
|
void loadState(nsHtml5Tokenizer* other);
|
|
|
|
void initializeWithoutStarting();
|
2010-04-16 10:52:06 +00:00
|
|
|
void setEncodingDeclarationHandler(nsHtml5StreamParser* encodingDeclarationHandler);
|
2010-11-10 10:03:48 +00:00
|
|
|
~nsHtml5Tokenizer();
|
2009-06-28 22:44:22 +00:00
|
|
|
static void initializeStatics();
|
|
|
|
static void releaseStatics();
|
2010-07-30 10:15:38 +00:00
|
|
|
|
|
|
|
#include "nsHtml5TokenizerHSupplement.h"
|
2009-06-28 22:44:22 +00:00
|
|
|
};
|
|
|
|
|
2010-04-16 10:52:06 +00:00
|
|
|
#define NS_HTML5TOKENIZER_DATA_AND_RCDATA_MASK ~1
|
2009-06-28 22:44:22 +00:00
|
|
|
#define NS_HTML5TOKENIZER_DATA 0
|
|
|
|
#define NS_HTML5TOKENIZER_RCDATA 1
|
2009-11-30 15:34:51 +00:00
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA 2
|
2010-09-28 07:32:31 +00:00
|
|
|
#define NS_HTML5TOKENIZER_RAWTEXT 3
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_ESCAPED 4
|
|
|
|
#define NS_HTML5TOKENIZER_ATTRIBUTE_VALUE_DOUBLE_QUOTED 5
|
|
|
|
#define NS_HTML5TOKENIZER_ATTRIBUTE_VALUE_SINGLE_QUOTED 6
|
|
|
|
#define NS_HTML5TOKENIZER_ATTRIBUTE_VALUE_UNQUOTED 7
|
|
|
|
#define NS_HTML5TOKENIZER_PLAINTEXT 8
|
|
|
|
#define NS_HTML5TOKENIZER_TAG_OPEN 9
|
|
|
|
#define NS_HTML5TOKENIZER_CLOSE_TAG_OPEN 10
|
|
|
|
#define NS_HTML5TOKENIZER_TAG_NAME 11
|
|
|
|
#define NS_HTML5TOKENIZER_BEFORE_ATTRIBUTE_NAME 12
|
|
|
|
#define NS_HTML5TOKENIZER_ATTRIBUTE_NAME 13
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_ATTRIBUTE_NAME 14
|
|
|
|
#define NS_HTML5TOKENIZER_BEFORE_ATTRIBUTE_VALUE 15
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_ATTRIBUTE_VALUE_QUOTED 16
|
|
|
|
#define NS_HTML5TOKENIZER_BOGUS_COMMENT 17
|
|
|
|
#define NS_HTML5TOKENIZER_MARKUP_DECLARATION_OPEN 18
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE 19
|
|
|
|
#define NS_HTML5TOKENIZER_BEFORE_DOCTYPE_NAME 20
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_NAME 21
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_DOCTYPE_NAME 22
|
|
|
|
#define NS_HTML5TOKENIZER_BEFORE_DOCTYPE_PUBLIC_IDENTIFIER 23
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED 24
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED 25
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_DOCTYPE_PUBLIC_IDENTIFIER 26
|
|
|
|
#define NS_HTML5TOKENIZER_BEFORE_DOCTYPE_SYSTEM_IDENTIFIER 27
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED 28
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED 29
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_DOCTYPE_SYSTEM_IDENTIFIER 30
|
|
|
|
#define NS_HTML5TOKENIZER_BOGUS_DOCTYPE 31
|
|
|
|
#define NS_HTML5TOKENIZER_COMMENT_START 32
|
|
|
|
#define NS_HTML5TOKENIZER_COMMENT_START_DASH 33
|
|
|
|
#define NS_HTML5TOKENIZER_COMMENT 34
|
|
|
|
#define NS_HTML5TOKENIZER_COMMENT_END_DASH 35
|
|
|
|
#define NS_HTML5TOKENIZER_COMMENT_END 36
|
2010-10-25 09:22:59 +00:00
|
|
|
#define NS_HTML5TOKENIZER_COMMENT_END_BANG 37
|
|
|
|
#define NS_HTML5TOKENIZER_NON_DATA_END_TAG_NAME 38
|
|
|
|
#define NS_HTML5TOKENIZER_MARKUP_DECLARATION_HYPHEN 39
|
|
|
|
#define NS_HTML5TOKENIZER_MARKUP_DECLARATION_OCTYPE 40
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_UBLIC 41
|
|
|
|
#define NS_HTML5TOKENIZER_DOCTYPE_YSTEM 42
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_DOCTYPE_PUBLIC_KEYWORD 43
|
|
|
|
#define NS_HTML5TOKENIZER_BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS 44
|
|
|
|
#define NS_HTML5TOKENIZER_AFTER_DOCTYPE_SYSTEM_KEYWORD 45
|
|
|
|
#define NS_HTML5TOKENIZER_CONSUME_CHARACTER_REFERENCE 46
|
|
|
|
#define NS_HTML5TOKENIZER_CONSUME_NCR 47
|
|
|
|
#define NS_HTML5TOKENIZER_CHARACTER_REFERENCE_TAIL 48
|
|
|
|
#define NS_HTML5TOKENIZER_HEX_NCR_LOOP 49
|
|
|
|
#define NS_HTML5TOKENIZER_DECIMAL_NRC_LOOP 50
|
|
|
|
#define NS_HTML5TOKENIZER_HANDLE_NCR_VALUE 51
|
|
|
|
#define NS_HTML5TOKENIZER_HANDLE_NCR_VALUE_RECONSUME 52
|
|
|
|
#define NS_HTML5TOKENIZER_CHARACTER_REFERENCE_HILO_LOOKUP 53
|
|
|
|
#define NS_HTML5TOKENIZER_SELF_CLOSING_START_TAG 54
|
|
|
|
#define NS_HTML5TOKENIZER_CDATA_START 55
|
|
|
|
#define NS_HTML5TOKENIZER_CDATA_SECTION 56
|
|
|
|
#define NS_HTML5TOKENIZER_CDATA_RSQB 57
|
|
|
|
#define NS_HTML5TOKENIZER_CDATA_RSQB_RSQB 58
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_LESS_THAN_SIGN 59
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_ESCAPE_START 60
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_ESCAPE_START_DASH 61
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_ESCAPED_DASH 62
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_ESCAPED_DASH_DASH 63
|
|
|
|
#define NS_HTML5TOKENIZER_BOGUS_COMMENT_HYPHEN 64
|
|
|
|
#define NS_HTML5TOKENIZER_RAWTEXT_RCDATA_LESS_THAN_SIGN 65
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN 66
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_DOUBLE_ESCAPE_START 67
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_DOUBLE_ESCAPED 68
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN 69
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_DOUBLE_ESCAPED_DASH 70
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH 71
|
|
|
|
#define NS_HTML5TOKENIZER_SCRIPT_DATA_DOUBLE_ESCAPE_END 72
|
2011-11-01 11:33:11 +00:00
|
|
|
#define NS_HTML5TOKENIZER_PROCESSING_INSTRUCTION 73
|
|
|
|
#define NS_HTML5TOKENIZER_PROCESSING_INSTRUCTION_QUESTION_MARK 74
|
2009-06-28 22:44:22 +00:00
|
|
|
#define NS_HTML5TOKENIZER_LEAD_OFFSET (0xD800 - (0x10000 >> 10))
|
|
|
|
#define NS_HTML5TOKENIZER_BUFFER_GROW_BY 1024
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|