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

This commit is contained in:
attinasi%netscape.com 2001-11-20 22:53:59 +00:00
Родитель 4fc0e35c4e
Коммит bd6800ff43
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -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);

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

@ -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);