Bug fix 2749 - Tweaked comment handling in quirks mode.

Bug fix 15992 - Line breaks within script and style were not getting counted
Related to bug 15423 - Rectified a glitch in Nav. DTD code where a doctype tag
                                         was opening up a body.
Userdefined tags are now treated as containers.
Added Kipp's Leaky Tool

r=pollmann.


git-svn-id: svn://10.0.0.236/trunk@50722 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
harishd%netscape.com
1999-10-14 23:37:21 +00:00
parent 75a2c4fce1
commit 1cd0327569
16 changed files with 154 additions and 40 deletions

View File

@@ -37,6 +37,7 @@ const int kBufsize=1;
const int kBufsize=64;
#endif
MOZ_DECL_CTOR_COUNTER(nsScanner);
/**
* Use this constructor if you want i/o to be based on
@@ -50,6 +51,8 @@ const int kBufsize=64;
nsScanner::nsScanner(nsString& anHTMLString, const nsString& aCharset, nsCharsetSource aSource) :
mBuffer(anHTMLString), mFilename(""), mUnicodeXferBuf("")
{
MOZ_COUNT_CTOR(nsScanner);
mTotalRead=mBuffer.Length();
mIncremental=PR_FALSE;
mOwnsStream=PR_FALSE;
@@ -74,6 +77,8 @@ nsScanner::nsScanner(nsString& anHTMLString, const nsString& aCharset, nsCharset
nsScanner::nsScanner(nsString& aFilename,PRBool aCreateStream, const nsString& aCharset, nsCharsetSource aSource) :
mBuffer(""), mFilename(aFilename), mUnicodeXferBuf("")
{
MOZ_COUNT_CTOR(nsScanner);
mIncremental=PR_TRUE;
mOffset=0;
mMarkPos=0;
@@ -100,7 +105,9 @@ nsScanner::nsScanner(nsString& aFilename,PRBool aCreateStream, const nsString& a
*/
nsScanner::nsScanner(nsString& aFilename,nsInputStream& aStream,const nsString& aCharset, nsCharsetSource aSource) :
mBuffer(""), mFilename(aFilename) , mUnicodeXferBuf("")
{
{
MOZ_COUNT_CTOR(nsScanner);
mIncremental=PR_FALSE;
mOffset=0;
mMarkPos=0;
@@ -177,6 +184,9 @@ nsresult nsScanner::SetDocumentCharset(const nsString& aCharset , nsCharsetSourc
* @return
*/
nsScanner::~nsScanner() {
MOZ_COUNT_DTOR(nsScanner);
if(mInputStream) {
mInputStream->close();
if(mOwnsStream)