Skip to content

Commit

Permalink
Remove javascript URL case from <a>/<area>/Location hash setter
Browse files Browse the repository at this point in the history
It makes no sense to just special case them in this IDL attribute
anymore, if it ever did.

Javascript URLs might come up again for the Location object 
per whatwg#1565, but for now they cannot be represented there and
the other case should be aligned with the URL Standard, which
changes per whatwg/url#254.
  • Loading branch information
annevk authored and Alice Boxhall committed Jan 7, 2019
1 parent d539734 commit 065a26c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -22080,9 +22080,7 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
<li><p>Let <var>url</var> be this element's <span
data-x="concept-hyperlink-url">url</span>.</p></li>

<li><p>If <var>url</var> is null or <var>url</var>'s <span
data-x="concept-url-scheme">scheme</span> is "<code data-x="">javascript</code>", terminate these
steps.</p></li>
<li><p>If <var>url</var> is null, then return.</p></li>

<li><p>If the given value is the empty string, set <var>url</var>'s <span
data-x="concept-url-fragment">fragment</span> to null.
Expand Down Expand Up @@ -81246,9 +81244,6 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
<li><p>Let <var>copyURL</var> be a copy of this <code>Location</code> object's <span
data-x="concept-location-url">url</span>.</p></li>

<li><p>If <var>copyURL</var>'s <span data-x="concept-url-scheme">scheme</span> is "<code
data-x="">javascript</code>", terminate these steps.</p></li>

<li><p>Let <var>input</var> be the given value with a single leading "<code data-x="">#</code>"
removed, if any.</p></li>

Expand Down

0 comments on commit 065a26c

Please sign in to comment.