fixed PDT+ bug 3118; r=dcone

git-svn-id: svn://10.0.0.236/trunk@54163 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rickg%netscape.com
1999-11-22 20:12:21 +00:00
parent 4bf1438d37
commit 3be554e7b5
2 changed files with 12 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();