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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 28 15:42:05 PDT 2016


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

            Bug ID: 157153
           Summary: Accessing form.action as property URI-encodes spaces
                    but not curly braces
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Macintosh
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: me at adamluikart.com

Reduction: https://jsfiddle.net/adamesque/nqp56nuo/

If you have a form element with an action attr that contains spaces and curly braces, accessing the action as a property on the DOM element returns a fully-qualified URL with spaces URI-encoded, but curly braces are not replaced.

Both Chrome & Firefox replace the braces with their URI-encoded equivalents.

This breaks code in the wild like https://github.com/indeedeng/proctor-webapp-library/blob/master/src/main/resources/META-INF/resources/static/scripts/app/editor.js#L220 which expects curly braces to be encoded.

Not sure what the "correct" behavior should be here, but consistency with other browsers would be nice.

-- 
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/20160428/dd9ecc0e/attachment.html>


More information about the webkit-unassigned mailing list