Reviewed by Mitz
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Feb 2007 20:28:52 +0000 (20:28 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Feb 2007 20:28:52 +0000 (20:28 +0000)
        Fix assertion failure in layout test.

        * html/HTMLMapElement.cpp:
        (WebCore::HTMLMapElement::parseMappedAttribute):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@19581 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/html/HTMLMapElement.cpp

index fac9f49f7f774fa5b790d1e22d98e04396c76aca..9d8a02a45afbb167ede1b34d88e5286fecfb09ba 100644 (file)
@@ -1,3 +1,12 @@
+2007-02-12  Antti Koivisto  <antti@apple.com>
+
+        Reviewed by Mitz
+
+        Fix assertion failure in layout test.
+
+        * html/HTMLMapElement.cpp:
+        (WebCore::HTMLMapElement::parseMappedAttribute):
+
 2007-02-12  Kevin McCulough  <kmccullough@apple.com>
 
         Reviewed by Brady.
index befe533140a1be99eb4f7173a06c8d14d0295133..c06dfa8431012a556d8c3c7187548699838ad330 100644 (file)
@@ -88,7 +88,7 @@ void HTMLMapElement::parseMappedAttribute(MappedAttribute* attr)
         doc->removeImageMap(this);
         String mapName = attr->value();
         if (mapName[0] == '#')
-            mapName.remove(0, 1);
+            mapName = mapName.substring(1);
         m_name = doc->htmlMode() == Document::XHtml ? mapName : mapName.lower();
         doc->addImageMap(this);
     } else