Skip to content

Commit

Permalink
Editorial: use HTML's encoding-parse a URL
Browse files Browse the repository at this point in the history
Closes #380.
  • Loading branch information
annevk committed Sep 22, 2023
1 parent 1cccb46 commit a5597b9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions xhr.bs
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,9 @@ method steps are:

<li><p><a for=method>Normalize</a> <var>method</var>.

<li><p>Let <var>parsedURL</var> be the result of <a lt="URL parser">parsing</a> <var>url</var> with
<a>this</a>'s <a>relevant settings object</a>'s
<a for="environment settings object">API base URL</a> and <a>this</a>'s
<a>relevant settings object</a>'s
<a for="environment settings object">API URL character encoding</a>.
<li><p>Let <var>parsedURL</var> be the result of
<a lt="encoding-parse a URL">encoding-parsing a URL</a> <var>url</var>, relative to <a>this</a>'s
<a>relevant settings object</a>.

<li><p>If <var>parsedURL</var> is failure, then <a>throw</a> a "{{SyntaxError!!exception}}"
{{DOMException}}.
Expand Down Expand Up @@ -1333,7 +1331,7 @@ not be web compatible.

<li><p>Set <var>document</var>'s <a for=Document>encoding</a> to <var>charset</var>.

<li><p>Set <var>document</var>'s <a>content type</a> to <var>finalMIME</var>.
<li><p>Set <var>document</var>'s <a for=Document>content type</a> to <var>finalMIME</var>.

<li><p>Set <var>document</var>'s <a for=Document>URL</a> to <var>xhr</var>'s
<a for=XMLHttpRequest>response</a>'s <a for=response>URL</a>.
Expand Down

0 comments on commit a5597b9

Please sign in to comment.