[Webkit-unassigned] [Bug 157153] Accessing form.action as property URI-encodes spaces but not curly braces

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 25 16:23:53 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157153

Ilguiz Latypov <ilatypov at infradead.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilatypov at infradead.org

--- Comment #4 from Ilguiz Latypov <ilatypov at infradead.org> ---
I think of a URL as a string that needs parsing before obtaining its values.  Both the encoded and the raw curly brace would unambiguously reduce to the raw curly brace after decoding the URL.  I understand the advantage of the approach "accept liberally, output conservatively" in terms of the browser presenting DOM elements to Javascript, so the suggested correction makes sense to me.

I see that RFC 3986, while formally calling for encoding any character outside the following characters,

  ALPHA / DIGIT / "-" / "." / "_" / "~" 
  / "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" 
  / ":" / "@"

suggests that "it is sometimes better for usability to avoid percent-encoding" special characters.  These two parts of the RFC look self-contradictory.

As for bug 116887, I obtained the same response from Washington Post regardless of the encoding, and I interpret this as an early conservative output.  Perhaps, the server did produce different results a few years back, and the conservative output of the browser on sending the request could work that around.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160525/e9363d76/attachment-0001.html>


More information about the webkit-unassigned mailing list