From 2c3f28dc3a8de12cf64e11525df523a575d92894 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Fri, 7 Nov 2003 04:26:30 +0000 Subject: [PATCH] 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 --- content/html/content/src/nsHTMLFrameSetElement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/html/content/src/nsHTMLFrameSetElement.cpp b/content/html/content/src/nsHTMLFrameSetElement.cpp index 1fab3be99b1..45bbc18ce12 100644 --- a/content/html/content/src/nsHTMLFrameSetElement.cpp +++ b/content/html/content/src/nsHTMLFrameSetElement.cpp @@ -439,9 +439,9 @@ nsHTMLFrameSetElement::ParseRowColSpec(nsString& aSpec, static const PRUnichar sPercent('%'); static const PRUnichar sComma(','); - // remove whitespace (Bug 33699) + // remove whitespace (Bug 33699) and quotation marks (bug 224598) // also remove leading/trailing commas (bug 31482) - aSpec.StripChars(" \n\r\t"); + aSpec.StripChars(" \n\r\t\"\'"); aSpec.Trim(","); // Count the commas