[Webkit-unassigned] [Bug 225340] When assigning to the src value for a constructed Image(), Safari 14.1 mangles the string
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 4 16:33:59 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225340
--- Comment #2 from Alex Christensen <achristensen at apple.com> ---
This changed with https://trac.webkit.org/changeset/266399/webkit which adopts the behavior of the URL specification at https://url.spec.whatwg.org/#fragment-state
The percent encoding starts after the '#' character, which begins the fragment of the URL. Your example also percent encodes those spaces in Firefox.
I've noticed some odd things about fragment encoding in different browsers:
Browser | new URL("data://example.com/# <>") | new URL("data://example.com/# <>")
-------------------------------------------------------------------------------------
Firefox 88 | data://example.com/#%20<> | http://example.com/#%20%3C%3E
Chrome 90 | data://example.com/# <> | http://example.com/#%20%3C%3E
Safari 14.1 | data://example.com/#%20%3C%3E | http://example.com/#%20%3C%3E
I've raised https://github.com/whatwg/url/issues/597 and intend to implement my proposed change to increase compatibility, which would revert https://trac.webkit.org/changeset/266399/webkit for non-special schemes.
--
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/20210504/5972715e/attachment-0001.htm>
More information about the webkit-unassigned
mailing list