Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
An HTML5 spec-compliant dialog
element polyfill.
dialog
elements in the pageHTMLDialogElement
API methodsdialog
support in Chrome and FirefoxElement.closest()
polyfill (not included) required for IE11 and Edge <15The polyfill can be installed from npm:
npm install ay-dialog
There are 3 varieties included in the package, offering a polyfill for strictly the spec-compliant behaviour, a polyfill with additional features, and a Web Component custom element.
A polyfill implementation of the <dialog>
element and additional behaviour in
all modern browsers.
// ES6 import:
import 'ay-dialog/index.js';
// CommonJS require:
require('ay-dialog');
A polyfill implementation for the <dialog>
element in all modern browsers,
matching spec behaviour as closely as possible. No extra behaviour.
// ES6 import:
import 'ay-dialog/polyfill.js';
// CommonJS require:
require('ay-dialog/polyfill');
ay-dialog
Custom ElementAn implementation of the dialog spec and additional behaviour as a
<ay-dialog>
custom element. This only works in modern browsers with support
for HTML custom elements.
// ES6 import:
import 'ay-dialog/component.js';
// CommonJS require:
require('ay-dialog/component');
This project is tested against the Web Platform
Tests for the HTML5 dialog
element.
See the tests
folder for test cases and instructions for running tests in a
browser.
Contributions of bug reports, feature requests, and pull requests are greatly appreciated!
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Released under the MIT Licence.
Copyright © 2019 Ayogo Health Inc.
FAQs
An HTML5 spec-compliant <dialog> polyfill.
The npm package ay-dialog receives a total of 1 weekly downloads. As such, ay-dialog popularity was classified as not popular.
We found that ay-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.