зеркало из https://github.com/mozilla/pjs.git
Added a hack until rick lets us set the DTD we want to use when parsing
This commit is contained in:
Родитель
2aaebea4a5
Коммит
7b98b811bf
|
@ -661,6 +661,8 @@ nsresult nsParser::Parse(nsString& aSourceBuffer,void* aKey,PRBool anHTMLString,
|
|||
pc->mContextType=CParserContext::eCTString;
|
||||
if(PR_TRUE==anHTMLString)
|
||||
pc->mSourceType="text/html";
|
||||
else
|
||||
pc->mSourceType="text/xml"; // XXX rick is a fish
|
||||
}
|
||||
else {
|
||||
NS_RELEASE(me);
|
||||
|
|
|
@ -661,6 +661,8 @@ nsresult nsParser::Parse(nsString& aSourceBuffer,void* aKey,PRBool anHTMLString,
|
|||
pc->mContextType=CParserContext::eCTString;
|
||||
if(PR_TRUE==anHTMLString)
|
||||
pc->mSourceType="text/html";
|
||||
else
|
||||
pc->mSourceType="text/xml"; // XXX rick is a fish
|
||||
}
|
||||
else {
|
||||
NS_RELEASE(me);
|
||||
|
|
Загрузка…
Ссылка в новой задаче