From 3be554e7b50fc3ccde259a0b22e7cfd5b0732b09 Mon Sep 17 00:00:00 2001 From: "rickg%netscape.com" Date: Mon, 22 Nov 1999 20:12:21 +0000 Subject: [PATCH] fixed PDT+ bug 3118; r=dcone git-svn-id: svn://10.0.0.236/trunk@54163 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsDTDUtils.cpp | 6 ++++++ mozilla/parser/htmlparser/src/nsDTDUtils.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/mozilla/htmlparser/src/nsDTDUtils.cpp b/mozilla/htmlparser/src/nsDTDUtils.cpp index dab6875c88b..8331e655068 100644 --- a/mozilla/htmlparser/src/nsDTDUtils.cpp +++ b/mozilla/htmlparser/src/nsDTDUtils.cpp @@ -912,7 +912,13 @@ nsresult CObserverService::Notify(eHTMLTags aTag,nsIParserNode& aNode,PRUint32 a nsAutoString theCharsetKey("charset"); nsAutoString theSourceKey("charsetSource"); nsAutoString intValue; + // Add pseudo attribute in the end + + if(index>=47) index=47; //XXX HACK HACK HACK!!!!! + //We really need to do a better job with attributes here. + + if(index < 50) { theKeys[index]=theCharsetKey.GetUnicode(); theValues[index] = theCharsetValue.GetUnicode(); diff --git a/mozilla/parser/htmlparser/src/nsDTDUtils.cpp b/mozilla/parser/htmlparser/src/nsDTDUtils.cpp index dab6875c88b..8331e655068 100644 --- a/mozilla/parser/htmlparser/src/nsDTDUtils.cpp +++ b/mozilla/parser/htmlparser/src/nsDTDUtils.cpp @@ -912,7 +912,13 @@ nsresult CObserverService::Notify(eHTMLTags aTag,nsIParserNode& aNode,PRUint32 a nsAutoString theCharsetKey("charset"); nsAutoString theSourceKey("charsetSource"); nsAutoString intValue; + // Add pseudo attribute in the end + + if(index>=47) index=47; //XXX HACK HACK HACK!!!!! + //We really need to do a better job with attributes here. + + if(index < 50) { theKeys[index]=theCharsetKey.GetUnicode(); theValues[index] = theCharsetValue.GetUnicode();