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> polyfill built with Angular 1.x.
Copyright © 2016 Ayogo Health Inc.
dialog
elements via Angular directiveshow()
, showModal()
, close()
, returnValue
)dialog
support in ChromeTo get started, install the package from npm: npm install ay-dialog
Add a script tag to your page to reference the dialog.js file:
<script src="node_modules/ay-dialog/dialog.js"></script>
Reference the module in your Angular app's dependencies:
angular.module(myApp, ['ayDialog'])
Reference the module in your Angular app's dependencies:
var ayDialog = require('ay-dialog').default;
angular.module(myApp, [ayDialog])
Reference the module in your Angular app's dependencies:
import ayDialog from 'ay-dialog';
angular.module(myApp, [ayDialog])
A TypeScript module definition is included, which also provides typings for the HTMLDialogElement interface.
It's not possible to implement the backdrop as a pseudo-element (as it is in native implementations), so the backdrop is added as a sibling element with a .backdrop
class.
Note that you need two separate selectors to support both .backdrop
and ::backdrop
, otherwise browsers that don't recognize the pseudo-element will skip the CSS block entirely!
dialog + .backdrop {
background: rgba(1, 0, 0, 0.1);
}
dialog::backdrop {
background: rgba(1, 0, 0, 0.1);
}
Released under the terms of the MIT License.
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.