Make the unknown decoder pick up <table> and <div>. Bug 83480, r=rpotts,

sr=darin
This commit is contained in:
bzbarsky%mit.edu 2002-02-02 16:10:04 +00:00
parent bc4ff1a138
commit cc5252cce0

View File

@ -341,9 +341,15 @@ void nsUnknownDecoder::DetermineContentType(nsIRequest* request)
if (offset < 0) {
offset = str.Find("<BODY", PR_TRUE);
if (offset < 0) {
offset = str.Find("<A HREF", PR_TRUE);
offset = str.Find("<TABLE", PR_TRUE);
if (offset < 0) {
offset = str.Find("<APPLET", PR_TRUE);
offset = str.Find("<DIV", PR_TRUE);
if (offset < 0) {
offset = str.Find("<A HREF", PR_TRUE);
if (offset < 0) {
offset = str.Find("<APPLET", PR_TRUE);
}
}
}
}
}