Skip to content

Commit c62edde

Browse files
annevkzcorpan
authored andcommitted
Change Location/<a>/<area>'s port setter
Setting it to the empty string should set the underlying port concept to null. See web-platform-tests/wpt#4101 for test changes and whatwg/url#113 for the change to the URL Standard.
1 parent d6b4fec commit c62edde

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

source

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21916,7 +21916,10 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
2191621916
data-x="concept-url-scheme">scheme</span> is "<code data-x="">file</code>", terminate these
2191721917
steps.</p></li>
2191821918

21919-
<li><p><span data-x="basic url parser">Basic URL parse</span> the given value, with
21919+
<li><p>If the given value is the empty string, then set <var>url</var>'s <span
21920+
data-x="concept-url-port">port</span> to null.</p></li>
21921+
21922+
<li><p>Otherwise, <span data-x="basic url parser">basic URL parse</span> the given value, with
2192021923
<var>url</var> as <var>url</var> and <span>port state</span> as <var>state
2192121924
override</var>.</p></li>
2192221925

@@ -80571,7 +80574,10 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
8057180574
data-x="concept-url-scheme">scheme</span> is "<code data-x="">file</code>", terminate these
8057280575
steps.</p></li>
8057380576

80574-
<li><p><span data-x="basic url parser">Basic URL parse</span> the given value, with
80577+
<li><p>If the given value is the empty string, then set <var>copyURL</var>'s <span
80578+
data-x="concept-url-port">port</span> to null.</p></li>
80579+
80580+
<li><p>Otherwise, <span data-x="basic url parser">basic URL parse</span> the given value, with
8057580581
<var>copyURL</var> as <var>url</var> and <span>port state</span> as <var>state
8057680582
override</var>.</p></li>
8057780583

0 commit comments

Comments
 (0)