Proposal to add WHATWG URL to ECMAScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Node.js v8.x has stable imlementations Aug 16, 2017

README.md

WHATWG URL

Introduce the WHATWG URL and URLSearchParams APIs as intrinsic ECMAScript objects.

Motivation

Unify and standardize URL parsing and handling across ECMAScript environments.

Note: Node.js has introduced WHATWG compatible URL parsing as a stable feature in v8.0.

Example

const base = new URL('http://example.org/foo');
const url = new URL('bar', base);

API

The API would be as defined by the WHATWG URL specification.