Bug 33699: Allow whitespace in frameset rows and cols spec '*' r=nisheeth

git-svn-id: svn://10.0.0.236/trunk@64531 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
2000-03-30 00:19:13 +00:00
parent 05fb7de17c
commit 5cbdfaa09f
2 changed files with 4 additions and 2 deletions

View File

@@ -739,10 +739,11 @@ nsHTMLFramesetFrame::ParseRowColSpec(nsString& aSpec,
// Translate value to an integer
nsString token("");
aSpec.Mid(token, start, numberEnd - start);
token.StripChars(" \n\r\t"); // Trim whitespace from spec (Bug 33699)
// Treat * as 1*
if ((eFramesetUnit_Relative == aSpecs[i].mUnit) &&
(numberEnd == start)) {
(0 == token.Length())) {
aSpecs[i].mValue = 1;
}