/tr> tailwind-color-palette 30f7226d9a first commit 2 anni fa tailwindcss 30f7226d9a first commit 2 anni fa thenify 30f7226d9a first commit 2 anni fa thenify-all 30f7226d9a first commit 2 anni fa to-regex-range 30f7226d9a first commit 2 anni fa tr46 30f7226d9a first commit 2 anni fa ts-interface-checker 30f7226d9a first commit 2 anni fa uglify-js 30f7226d9a first commit 2 anni fa underscore 30f7226d9a first commit 2 anni fa upper-case 30f7226d9a first commit 2 anni fa util-deprecate 30f7226d9a first commit 2 anni fa valid-data-url 30f7226d9a first commit 2 anni fa web-resource-inliner 30f7226d9a first commit 2 anni fa webidl-conversions 30f7226d9a first commit 2 anni fa whatwg-url 30f7226d9a first commit 2 anni fa wrap-ansi 30f7226d9a first commit 2 anni fa wrappy 30f7226d9a first commit 2 anni fa y18n 30f7226d9a first commit 2 anni fa yallist 30f7226d9a first commit 2 anni fa yaml 30f7226d9a first commit 2 anni fa yargs 30f7226d9a first commit 2 anni fa yargs-parser 30f7226d9a first commit 2 anni fa .yarn-integrity 30f7226d9a first commit 2 anni fa tum/network_report_server - Gogs: Simplico Git Service

Нет описания

tum 30f7226d9a first commit лет назад: 2
..
LICENSE.txt 30f7226d9a first commit лет назад: 2
README.md 30f7226d9a first commit лет назад: 2
package.json 30f7226d9a first commit лет назад: 2

README.md

# whatwg-url

whatwg-url is a full implementation of the WHATWG URL Standard. It can be used standalone, but it also exposes a lot of the internal algorithms that are useful for integrating a URL parser into a project like jsdom.

Current Status

whatwg-url is currently up to date with the URL spec up to commit a62223.

API

The URL Constructor

The main API is the URL export, which follows the spec's behavior in all ways (including e.g. USVString conversion). Most consumers of this library will want to use this.

Low-level URL Standard API

The following methods are exported for use by places like jsdom that need to implement things like HTMLHyperlinkElementUtils. They operate on or return an "internal URL" or "URL record" type.

The stateOverride parameter is one of the following strings:

The URL record type has the following API:

These properties should be treated with care, as in general changing them will cause the URL record to be in an inconsistent state until the appropriate invocation of basicURLParse is used to fix it up. You can see examples of this in the URL Standard, where there are many step sequences like "4. Set context object’s url’s fragment to the empty string. 5. Basic URL parse input with context object’s url as url and fragment state as state override." In between those two steps, a URL record is in an unusable state.

The return value of "failure" in the spec is represented by the string "failure". That is, functions like parseURL and basicURLParse can return either a URL record or the string "failure".