Stop stripping whitespace from image map name. b=87050 r=kmcclusk sr=attinasi (checked in for David Einstein)

git-svn-id: svn://10.0.0.236/trunk@108635 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
attinasi%netscape.com
2001-11-20 22:53:59 +00:00
parent f8655c6105
commit cae55bbe7b
2 changed files with 6 additions and 6 deletions

View File

@@ -59,9 +59,9 @@ nsresult nsImageMapUtils::FindImageMap(nsIDocument *aDocument,
nsAutoString usemap(aUsemap);
// Strip out whitespace in the name for navigator compatibility
// XXX NAV QUIRK
usemap.StripWhitespace();
/* we used to strip the whitespace from the usemap value as a Quirk, but it was too quirky and
didn't really work correctly - see bug 87050
*/
if (!usemap.IsEmpty() && usemap.First() == '#') {
usemap.Cut(0, 1);

View File

@@ -59,9 +59,9 @@ nsresult nsImageMapUtils::FindImageMap(nsIDocument *aDocument,
nsAutoString usemap(aUsemap);
// Strip out whitespace in the name for navigator compatibility
// XXX NAV QUIRK
usemap.StripWhitespace();
/* we used to strip the whitespace from the usemap value as a Quirk, but it was too quirky and
didn't really work correctly - see bug 87050
*/
if (!usemap.IsEmpty() && usemap.First() == '#') {
usemap.Cut(0, 1);