Commit b59f30fa authored by Dirk Mueller's avatar Dirk Mueller

make sure we complete url's with leading or trailing whitespace in Javascript correctly.

svn path=/trunk/kdelibs/; revision=155666
parent 688108d3
......@@ -23,7 +23,7 @@
// --------------------------------------------------------------------------
#include "html_document.h"
#include "css/csshelper.h"
#include "dom/html_misc.h"
#include "xml/dom_textimpl.h"
#include "html/html_documentimpl.h"
......@@ -101,7 +101,8 @@ DOMString HTMLDocument::referrer() const
DOMString HTMLDocument::completeURL(const DOMString& str) const
{
if(!impl) return str;
return ((HTMLDocumentImpl *)impl)->completeURL(str.string());
DOMString parsed = khtml::parseURL(str);
return ((HTMLDocumentImpl *)impl)->completeURL(parsed.string());
}
DOMString HTMLDocument::domain() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment