зеркало из https://github.com/mozilla/pjs.git
Bug 31482: Stray commas in ROW or COL attribute no longer cause framesets to not display, r=waqar
This commit is contained in:
Родитель
138124e7b9
Коммит
1646e94b65
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче