Dialog Polyfill Versions Save

Polyfill for the HTML dialog element

v0.5.6

3 years ago
  • Fixes a crash with Shadow DOM
  • Fixes a crash with finding the form submitter in Safari

v0.5.4

3 years ago
  • Supports formmethod to override/change <form method>, so e.g., a button could specifically force formmethod="dialog"
  • Handles <form method="dialog"> inside a Shadow Root (no longer submits the form as if it was a GET)
  • Fixed TypeScript definitions

v0.5.3

3 years ago
  • Fixes TypeScript definitions file issue. No code changes.

v0.5.2

3 years ago
  • Better support for Shadow DOM
  • Forwards mousedown and mouseup events on backdrop

v0.5.1

4 years ago
  • Adds basic support for a dialog inside Shadow DOM.

As the polyfill doesn't insert its own CSS in either SD or regular cases, you'll need to add the CSS to the host.

v0.5.0

5 years ago

Ships the polyfill as an ES Module.

The NPM-published release now contains both dist/dialog-polyfill.js (as before) and dist/dialog-polyfill.esm.js, which includes export default dialogPolyfill;. See #164 for more information.

This is 0.5.0 because it could break previous users of the 0.4.x branch.

0.4.10

5 years ago
  • Fixes an issue with IE block scoping of function.

0.4.9

6 years ago
  • Works around an issue with older browsers not returning or having the descriptor for method on HTMLFormElement. These browsers might not return "dialog" for method on <form method="dialog">

0.4.8

6 years ago
  • Improved support for <form method="dialog">.
    • The polyfill now has immediate side-effects: it adds support for these types of forms.
  • Resolved an issue with .returnValue not being set correctly.
  • Fixed a bug while not using MutationObserver.

0.4.7

7 years ago
  • Resolves a hard lock in IE11.
  • Fixes a crash in Firefox.