All Projects → WebReflection → Url Search Params

WebReflection / Url Search Params

Licence: mit
Simple polyfill for URLSearchParams standard

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Url Search Params

Object Fit Polyfill
A Javascript polyfill for browsers that don't support the object-fit CSS property.
Stars: ✭ 493 (-35.56%)
Mutual labels:  polyfill
Polyfill Service
Automatic polyfill service.
Stars: ✭ 5,585 (+630.07%)
Mutual labels:  polyfill
Polyfill Intl Grapheme
This component provides a partial, native PHP implementation of the Grapheme functions from the Intl extension.
Stars: ✭ 690 (-9.8%)
Mutual labels:  polyfill
Resize Observer
Polyfills the ResizeObserver API.
Stars: ✭ 540 (-29.41%)
Mutual labels:  polyfill
Css Paint Polyfill
CSS Custom Paint / Paint Worklet polyfill with special browser optimizations.
Stars: ✭ 575 (-24.84%)
Mutual labels:  polyfill
Text Encoding
Polyfill for the Encoding Living Standard's API
Stars: ✭ 629 (-17.78%)
Mutual labels:  polyfill
React Lifecycles Compat
Backwards compatibility polyfill for React class components
Stars: ✭ 457 (-40.26%)
Mutual labels:  polyfill
Hyperform
Capture form validation back from the browser
Stars: ✭ 729 (-4.71%)
Mutual labels:  polyfill
Bootstrap Ie7
Bootstrap 3 CSS for IE7
Stars: ✭ 578 (-24.44%)
Mutual labels:  polyfill
Sticky State
StickyState is a high performant module making native position:sticky statefull and polyfilling the missing sticky browser feature
Stars: ✭ 692 (-9.54%)
Mutual labels:  polyfill
Webassemblyjs
Toolchain for WebAssembly
Stars: ✭ 566 (-26.01%)
Mutual labels:  polyfill
Unfetch
🐕 Bare minimum 500b fetch polyfill.
Stars: ✭ 5,239 (+584.84%)
Mutual labels:  polyfill
Jsbi
JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.
Stars: ✭ 663 (-13.33%)
Mutual labels:  polyfill
Undom
🍩 1kb minimally viable DOM Document implementation
Stars: ✭ 496 (-35.16%)
Mutual labels:  polyfill
Fetch
A window.fetch JavaScript polyfill.
Stars: ✭ 25,118 (+3183.4%)
Mutual labels:  polyfill
Sugar
A Javascript library for working with native objects.
Stars: ✭ 4,457 (+482.61%)
Mutual labels:  polyfill
Polyfill Apcu
This component provides apcu_* functions and the APCUIterator class to users of the legacy APC extension.
Stars: ✭ 629 (-17.78%)
Mutual labels:  polyfill
Clipboard Polyfill
📋 Simple copying on the web, with maximum browser compatibility.
Stars: ✭ 748 (-2.22%)
Mutual labels:  polyfill
Native Promise Only
A polyfill for native ES6 Promises as close as possible (no extensions) to the strict spec definitions.
Stars: ✭ 708 (-7.45%)
Mutual labels:  polyfill
Create React Context
Polyfill for the proposed React context API
Stars: ✭ 689 (-9.93%)
Mutual labels:  polyfill

url-search-params

build status CDNJS version donate

Deprecated

This polyfill has been improved, better tested, and moved under the ungap umbrella.

The new version is available as @ungap/url-search-params.


This is a polyfill for the URLSearchParams API.

It is possible to simply include build/url-search-params.js or grab it via npm.

npm install url-search-params

The function is exported directly.

var URLSearchParams = require('url-search-params');

MIT Style License

iOS 10 + other platforms bug

In case you'd like to replace the broken global native constructor, you can check some well known issue before including this polyfill on your project/page.

<script>
try { if (new URLSearchParams('q=%2B').get('q') !== '+') throw {}; }
catch (error) {
  window.URLSearchParams = void 0;
  document.write('<script src="/js/url-search-params.js"><'+'/script>');
}
</script>

About HTMLAnchorElement.prototype.searchParams

This property is already implemented in Firefox and polyfilled here only for browsers that exposes getters and setters through the HTMLAnchorElement.prototype.

In order to know if such property is supported, you must do the check as such:

if ('searchParams' in HTMLAnchorElement.prototype) {
  // polyfill for <a> links supported
}

If you do this check instead:

if (HTMLAnchorElement.prototype.searchParams) {
  // throws a TypeError
}

this polyfill will reflect native behavior, throwing a type error due access to a property in a non instance of HTMLAnchorElement.

Nothing new to learn here, just a reminder.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].