34458 - Added static APIs to determine DTD for a given

DOCTYPE,MIMETYPE,COMMAND.
r=rickg,pollmann
33397 - Fixed the NOSCRIPT interference on residual style handling.
r=rickg.
35456 - Emulating Nav. for documents with unclosed STYLE and SCRIPT.
37052 - Handling XMP content.
r=pollmann


git-svn-id: svn://10.0.0.236/trunk@68152 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
2000-05-03 22:09:09 +00:00
parent 7624784ee8
commit 0275e427e2
20 changed files with 896 additions and 430 deletions

View File

@@ -360,7 +360,40 @@ private:
*/
PRBool DidTokenize(PRBool aIsFinalChunk = PR_FALSE);
/**
* Call this method to determine a DTD for a DOCTYPE
*
* @update harishd 05/01/00
* @param aDTD -- Carries the deduced ( from DOCTYPE ) DTD.
* @param aDocTypeStr -- A doctype for which a DTD is to be selected.
* @param aMimeType -- A mimetype for which a DTD is to be selected.
Note: aParseMode might be required.
* @param aCommand -- A command for which a DTD is to be selected.
* @param aParseMode -- Used with aMimeType to choose the correct DTD.
* @return NS_OK if succeeded else ERROR.
*/
static nsresult CreateCompatibleDTDForDocType(nsIDTD** aDTD, nsString* aDocTypeStr);
/**
* Call this method to determine a DTD for a given mime type.
*
* @update harishd 05/01/00
* @param aDTD -- Carries the deduced ( from DOCTYPE ) DTD.
* @param aMimeType -- A mimetype for which a DTD is to be selected.
Note: aParseMode might be required.
* @param aParseMode -- Used with aMimeType to choose the correct DTD.
* @return NS_OK if succeeded else ERROR.
*/
static nsresult CreateCompatibleDTDForMimeType(nsIDTD** aDTD, const nsString* aMimeType=nsnull,
eParseMode aParseMode=eParseMode_unknown);
/**
* Call this method to determine a DTD for a given command
*
* @update harishd 05/01/00
* @param aDTD -- Carries the deduced ( from DOCTYPE ) DTD.
* @param aCommand -- A command for which a DTD is to be selected.
* @return NS_OK if succeeded else ERROR.
*/
static nsresult CreateCompatibleDTDForCommand(nsIDTD** aDTD, eParserCommands aCommand=eViewNormal);
protected:
//*********************************************
// And now, some data members...