[Webkit-unassigned] [Bug 140080] New: Location object attributes shouldn't be decoded?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 5 07:08:46 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=140080
Bug ID: 140080
Summary: Location object attributes shouldn't be decoded?
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: j.zuckerman at gmail.com
I might be making some leaps here, or using terminology wrongly, but I think the correct behavior for the Location object is to return a valid URI or URI components in the Location object attributes,
"The value of the href attribute MUST be the absolute URI reference"
http://www.w3.org/TR/Window/#location
and the percent character by itself (not as part of a uri-encoded octet) is not a valid character in a uri,
"Because the percent "%" character always has the reserved purpose of being the escape indicator, it must be escaped as "%25" in order to be used as data within a URI."
https://www.ietf.org/rfc/rfc2396.txt (page 9)
Currently `location.href` will return a decoded version of the url (percent-encoded values will be decoded), is this the correct behavior according to the standards?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150105/7dd786c4/attachment-0002.html>
More information about the webkit-unassigned
mailing list