Skip to content

Commit

Permalink
Use "SyntaxError" for location.protocol's setter
Browse files Browse the repository at this point in the history
This matches Chrome and Safari. Edge and Firefox use an internal error
that needs to change either way.

Tests: web-platform-tests/wpt#4412.

Additional context: whatwg/url#61.
  • Loading branch information
annevk committed Jan 5, 2017
1 parent 6e055a8 commit a695b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -80988,8 +80988,8 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O
parsing</span> the given value, followed by "<code data-x="">:</code>", with <var>copyURL</var>
as <var>url</var> and <span>scheme start state</span> as <var>state override</var>.</p></li>

<li><p>If <var>possibleFailure</var> is failure, throw a <code>TypeError</code>
exception.</p></li>
<li><p>If <var>possibleFailure</var> is failure, then throw a
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>If <var>copyURL</var>'s <span data-x="concept-url-scheme">scheme</span> is not an
<span>HTTP(S) scheme</span>, then terminate these steps.</p></li>
Expand Down

0 comments on commit a695b8f

Please sign in to comment.