Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Libraries
Commits
c80098c4
Commit
c80098c4
authored
Nov 30, 2014
by
Andrea Iacovitti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix setting unencoded url fragment id
BUG: 303618
parent
375bca6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
khtml/ecma/kjs_window.cpp
khtml/ecma/kjs_window.cpp
+2
-2
khtml/xml/dom_docimpl.cpp
khtml/xml/dom_docimpl.cpp
+12
-0
No files found.
khtml/ecma/kjs_window.cpp
View file @
c80098c4
...
...
@@ -2947,12 +2947,12 @@ void Location::put(ExecState *exec, const Identifier &p, JSValue *v, int attr)
// Note that we want to do gotoAnchor even when the hash is already set, so we
// scroll the destination into view.
// Setting this must always provide a ref, even if just
;
see
// Setting this must always provide a ref, even if just
#
see
// HTML5 2.6.
if
(
str
.
isEmpty
())
{
url
.
setHTMLRef
(
""
);
}
else
{
url
.
set
Ref
(
str
);
url
.
set
HTMLRef
(
KUrl
::
fromPercentEncoding
(
str
.
toUtf8
())
);
}
break
;
case
Host
:
{
...
...
khtml/xml/dom_docimpl.cpp
View file @
c80098c4
...
...
@@ -1696,6 +1696,18 @@ void DocumentImpl::finishParsing ( )
QString
DocumentImpl
::
completeURL
(
const
QString
&
url
)
const
{
if
(
url
.
startsWith
(
QLatin1Char
(
'#'
)))
{
const
QString
ref
=
KUrl
::
fromPercentEncoding
(
url
.
mid
(
1
).
toUtf8
());
KUrl
u
=
baseURL
();
if
(
ref
.
isEmpty
())
{
u
.
setHTMLRef
(
""
);
}
else
{
u
.
setHTMLRef
(
ref
);
}
return
u
.
url
();
}
return
KUrl
(
baseURL
(),
url
/*,m_decoderMibEnum*/
).
url
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment