Skip to content

Commit

Permalink
Treat javascript: URL results as UTF-8 bytes
Browse files Browse the repository at this point in the history
Closes #1129.
  • Loading branch information
domenic committed Jun 22, 2021
1 parent eaf1d5a commit 66605d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -86533,13 +86533,13 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<p>If <span data-x="js-Type">Type</span>(<var>result</var>) is String, then set
<var>response</var> to a <span data-x="concept-response">response</span> whose <span
data-x="concept-response-header-list">header list</span> consists of
`<code>Content-Type</code>`/`<code>text/html</code>`, and whose <span
data-x="concept-response-body">body</span> is <var>result</var>.</p>
`<code>Content-Type</code>`/`<code data-x="">text/html;charset=utf-8</code>`, and whose <span
data-x="concept-response-body">body</span> is the result of <span data-x="UTF-8 encode">UTF-8
encoding</span> <var>result</var>.</p>

<p class="XXX">The exact conversion between the string <var>result</var> and the bytes that
comprise a <span data-x="concept-response-body">response body</span> is not yet specified,
pending further investigation into user agent behavior. See <a
href="https://github.com/whatwg/html/issues/1129">issue #1129</a>.</p>
<p class="note">The encoding to UTF-8 means that unpaired <span
data-x="surrogate">surrogates</span> will not roundtrip, once the HTML parser decodes the
response body.</p>
</li>
</ol>
</li>
Expand Down

0 comments on commit 66605d1

Please sign in to comment.