[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.0/kdelibs/khtml/ecma
From: Maks Orlovich <maksim () kde ! org>
Date: 2008-03-03 22:53:40
Message-ID: 1204584820.910081.7118.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 781940 by orlovich:
Properly normalize whitespace in URLs when getting from JS.
Fixes article links @ http://milliyet.com.tr/
(Thanks to cartman for the report)
M +2 -2 kjs_html.cpp
--- branches/KDE/4.0/kdelibs/khtml/ecma/kjs_html.cpp #781939:781940
@@ -35,8 +35,8 @@
#include <html/html_canvasimpl.h>
#include <dom/dom_exception.h>
+#include <css/csshelper.h> // for parseUrl
-// ### HACK
#include <html/html_baseimpl.h>
#include <html/html_documentimpl.h>
#include <html/html_formimpl.h>
@@ -1577,7 +1577,7 @@
QString KJS::HTMLElement::getURLArg(unsigned id) const
{
- DOMString rel = impl()->getAttribute(id);
+ DOMString rel = khtml::parseURL(impl()->getAttribute(id));
return !rel.isNull() ? impl()->getDocument()->completeURL(rel.string()) : QString();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic