UNPKG

@availity/native-form

Version:

Submit JSON data via a native form, not AJAX. Useful when you need to open a new page with a POST action.

9 lines (8 loc) 332 B
// Polyfill CSS.escape for jsdom (not implemented natively) // https://drafts.csswg.org/cssom/#the-css.escape()-method if (globalThis.CSS === undefined) { globalThis.CSS = {} as typeof CSS; } if (globalThis.CSS.escape === undefined) { globalThis.CSS.escape = (value: string) => value.replaceAll(/([^\w-])/g, String.raw`\$1`); }