GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify treatment of non-string base in URL() · nodejs/node@018ec32

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • url.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/url.md‎

Copy file name to clipboardExpand all lines: doc/api/url.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ return `true`.
132132
* `input` {string} The absolute or relative input URL to parse. If `input`
133133
is relative, then `base` is required. If `input` is absolute, the `base`
134134
is ignored. If `input` is not a string, it is [converted to a string][] first.
135-
* `base` {string|URL} The base URL to resolve against if the `input` is not
136-
absolute.
135+
* `base` {string} The base URL to resolve against if the `input` is not
136+
absolute. If `base` is not a string, it is [converted to a string][] first.
137137

138138
Creates a new `URL` object by parsing the `input` relative to the `base`. If
139139
`base` is passed as a string, it will be parsed equivalent to `new URL(base)`.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.