Bug 31482: Stray commas in ROW or COL attribute no longer cause framesets to not display, r=waqar

git-svn-id: svn://10.0.0.236/trunk@63492 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2000-03-20 23:33:03 +00:00
parent fcaa168617
commit f3f1b0967d
2 changed files with 6 additions and 2 deletions

View File

@@ -693,7 +693,9 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
static const PRUnichar PERCENT('%');
static const PRUnichar COMMA(',');
aSpec.Trim(" \n\r\t"); // remove leading and trailing whitespace
// remove leading and trailing whitespace
// also remove leading/trialing commas (bug 31482)
aSpec.Trim(" \n\r\t,");
// Count the commas
PRInt32 commaX = aSpec.FindChar(COMMA);