Re: [whatwg/url] Editorial: clarify constructor example (PR #725)

@domenic approved this pull request.



>  
  <pre><code class="lang-javascript">
 var input = "/🍣🍺",
     url = new URL(input, document.baseURI)
 url.href // "https://url.spec.whatwg.org/%F0%9F%8D%A3%F0%9F%8D%BA"</code></pre>
 
- <p>A {{URL}} object can be used as <a>base URL</a> (while IDL requires a string as argument, a
- {{URL}} object stringifies to its {{URL/href}} getter return value):</p>
+ <p>A {{URL}} object can be used as a <a>base URL</a> (while <cite>Web IDL</cite> requires a string

I might say "the IDL requires" instead of stating that the _Web IDL_ spec has something to say about this specific constructor.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/725#pullrequestreview-1213065772

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/pull/725/review/1213065772@github.com>

Received on Monday, 12 December 2022 08:17:13 UTC