Strip quotes from inside col/row-specs (where there should be no quotes to

start with, but some sites just code like that).  Bug 224598, patch by
mats.palmgren@bredband.net (Mats Palmgren), r+sr=bzbarsky
This commit is contained in:
bzbarsky%mit.edu 2003-11-07 04:26:30 +00:00
Родитель 5a013fc981
Коммит 2c3f28dc3a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -439,9 +439,9 @@ nsHTMLFrameSetElement::ParseRowColSpec(nsString& aSpec,
static const PRUnichar sPercent('%'); static const PRUnichar sPercent('%');
static const PRUnichar sComma(','); static const PRUnichar sComma(',');
// remove whitespace (Bug 33699) // remove whitespace (Bug 33699) and quotation marks (bug 224598)
// also remove leading/trailing commas (bug 31482) // also remove leading/trailing commas (bug 31482)
aSpec.StripChars(" \n\r\t"); aSpec.StripChars(" \n\r\t\"\'");
aSpec.Trim(","); aSpec.Trim(",");
// Count the commas // Count the commas