various bug fixes (PDT+ and other); removed warnings. r=syd
git-svn-id: svn://10.0.0.236/trunk@55067 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -208,7 +208,7 @@ public:
|
||||
CViewSourceHTML::CViewSourceHTML() : nsIDTD(),
|
||||
mStartTag("start"), mEndTag("end"), mCommentTag("comment"),
|
||||
mDocTypeTag("doctype"), mPITag("pi"), mEntityTag("entity"),
|
||||
mText("txt"), mKey("key"), mValue("val")
|
||||
mText("txt"), mKey("key"), mValue("val"), mCDATATag("cdata")
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
mParser=0;
|
||||
@@ -877,6 +877,15 @@ NS_IMETHODIMP CViewSourceHTML::HandleToken(CToken* aToken,nsIParser* aParser) {
|
||||
result=WriteTag(mEndTag,aToken,0,PR_TRUE);
|
||||
break;
|
||||
|
||||
case eToken_cdatasection:
|
||||
{
|
||||
nsString& theStr=aToken->GetStringValueXXX();
|
||||
theStr.Insert("<!",0);
|
||||
theStr.Append("]]>");
|
||||
result=WriteTag(mCDATATag,aToken,0,PR_TRUE);
|
||||
}
|
||||
break;
|
||||
|
||||
case eToken_comment:
|
||||
result=WriteTag(mCommentTag,aToken,0,PR_TRUE);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user