An implementation of various Web/WHATWG APIs, intended to be robust, correct, and portable.
import { URL, URLSearchParams } from "jsr:@easrng/safe-whatwg/url";The implementation structure is based on Deno's 00_webidl.js and 00_url.js, with algorithms from whatwg-url, tr46, and node's internal/url. It complies with the URL spec up to commit 6c78200. It requires that the host environment support UTF-8 TextEncoder and TextDecoder.
import { TextDecoder, TextEncoder } from "jsr:@easrng/safe-whatwg/encoding";The implementation structure is based on Deno's 00_webidl.js and 08_text_encoding.js, with algorithms from encoding_rs. It complies with the Encoding spec up to commit 2f2e812.
import { DOMException } from "jsr:@easrng/safe-whatwg/domexception";The implementation structure is based on Deno's 00_webidl.js and 01_dom_exception.js. It complies with the WebIDL spec up to commit 122e9da.
This library should be robust against any environment modifications that occur after it is imported. If it isn't, please report it, even if it's a weird improbable edge case.