Skip to content

Commit

Permalink
Clarify: URL() can take object w/ URL stringifier (mdn#2768)
Browse files Browse the repository at this point in the history
Fixes mdn#2767
  • Loading branch information
sideshowbarker authored Mar 1, 2021
1 parent 3848fff commit 0582826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/url/url/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ <h3 id="Parameters">Parameters</h3>

<dl>
<dt><code><var>url</var></code></dt>
<dd>A {{domxref("USVString")}} representing an absolute or relative URL. If
<code><var>url</var></code> is a relative URL, <code><var>base</var></code> is
<dd>A {{domxref("USVString")}} or any other object with a <a href="/en-US/docs/MDN/Contribute/Howto/Write_an_API_reference/Information_contained_in_a_WebIDL_file#stringifiers">stringifier</a> — including, for example, an {{htmlelement("a")}} or {{htmlelement("area")}} element — that represents an absolute or relative URL.
If <code><var>url</var></code> is a relative URL, <code><var>base</var></code> is
required, and will be used as the base URL. If <code><var>url</var></code> is an
absolute URL, a given <code><var>base</var></code> will be ignored.</dd>
<dt><code><var>base</var></code> {{optional_inline}}</dt>
Expand Down

0 comments on commit 0582826

Please sign in to comment.