зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
5a013fc981
Коммит
2c3f28dc3a
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче