From bdab240b09d3affd11c9a99ec2e65edf2c6de05a 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 1fab3be99b13..45bbc18ce127 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