13640, 13736 - Memory leaks - R=rickg 1312 - Hooked up XHTML DOCTYPE - R=rickg 7590 - Prematuredly closing <SCRIPT> on seeing </SCRIPTERR> 2749 - Strict comment handling for noquirks mode - R=rickg 14955 - LEGEND inside FIELDSET was causing infinite looping - R=rickg,pollmann 14952 - LABEL got closed on seeing SPAN (LABEL can contain SPAN ) - R=pollmann 15381 - comment handling for XIF and HTML - R=akkana 15346 - Stray end tag caused loading blank document - R=rickg,pollmann git-svn-id: svn://10.0.0.236/trunk@49988 18797224-902f-48f8-a5cc-f745e15eee43
76 lines
2.0 KiB
C++
76 lines
2.0 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/*
|
|
* The contents of this file are subject to the Netscape Public License
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
* http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
* for the specific language governing rights and limitations under the
|
|
* NPL.
|
|
*
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
|
|
|
|
/**
|
|
* MODULE NOTES:
|
|
* @update gess 4/1/98
|
|
*
|
|
*/
|
|
|
|
#ifndef __NSXMLTOKENIZER
|
|
#define __NSXMLTOKENIZER
|
|
|
|
#include "nsISupports.h"
|
|
#include "nsHTMLTokenizer.h"
|
|
#include "nsIParser.h"
|
|
#include "nsIDTD.h"
|
|
#include "prtypes.h"
|
|
#include "nsDeque.h"
|
|
#include "nsScanner.h"
|
|
#include "nsHTMLTokens.h"
|
|
|
|
#define NS_XMLTOKENIZER_IID \
|
|
{0xcf22e1fa, 0x9ed2, 0x11d2, { 0xba, 0xa5, 0x0, 0x10, 0x4b, 0x98, 0x3f, 0xd4 }}
|
|
|
|
|
|
|
|
/***************************************************************
|
|
Notes:
|
|
***************************************************************/
|
|
|
|
#if defined(XP_PC)
|
|
#pragma warning( disable : 4275 )
|
|
#endif
|
|
|
|
CLASS_EXPORT_HTMLPARS nsXMLTokenizer : public nsHTMLTokenizer {
|
|
public:
|
|
nsXMLTokenizer();
|
|
virtual ~nsXMLTokenizer();
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
virtual nsresult ConsumeToken(nsScanner& aScanner);
|
|
virtual nsITokenRecycler* GetTokenRecycler(void);
|
|
|
|
static void FreeTokenRecycler(void);
|
|
|
|
protected:
|
|
|
|
virtual nsresult HandleSkippedContent(nsScanner& aScanner,CToken*& aToken);
|
|
virtual nsresult ConsumeComment(PRUnichar aChar,CToken*& aToken,nsScanner& aScanner);
|
|
virtual nsresult ConsumeSpecialMarkup(PRUnichar aChar,CToken*& aToken,nsScanner& aScanner);
|
|
|
|
};
|
|
|
|
extern NS_HTMLPARS nsresult NS_NewXMLTokenizer(nsIDTD** aInstancePtrResult);
|
|
|
|
#endif
|
|
|
|
|