[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/html
From: Ivor Hewitt <ivor () ivor ! org>
Date: 2006-02-27 21:01:07
Message-ID: 1141074067.110017.5639.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 514290 by ivor:
Make usemap case insensitive.
BUG: 101237
M +3 -3 html_imageimpl.cpp
--- branches/KDE/3.5/kdelibs/khtml/html/html_imageimpl.cpp #514289:514290
@@ -145,7 +145,7 @@
break;
case ATTR_USEMAP:
if ( attr->value()[0] == '#' )
- usemap = attr->value();
+ usemap = attr->value().lower();
else {
QString url = getDocument()->completeURL( khtml::parseURL( attr->value() ).string() );
// ### we remove the part before the anchor and hope
@@ -413,9 +413,9 @@
{
DOMString s = attr->value();
if(*s.unicode() == '#')
- name = QString(s.unicode()+1, s.length()-1);
+ name = QString(s.unicode()+1, s.length()-1).lower();
else
- name = s.string();
+ name = s.string().lower();
// ### make this work for XML documents, e.g. in case of <html:map...>
if(getDocument()->isHTMLDocument())
static_cast<HTMLDocumentImpl*>(getDocument())->mapMap[name] = this;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic