
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Micro-library & custom element that rewards accessible, semantic HTML and minimal, well-formed ARIA!
I'm the micro-library and custom element that rewards accessible, semantic HTML and minimal, well-formed ARIA!
Given HTML containing a <button>
and <dialog>
:
<button
id="triggerButton"
aria-controls="myDialog"
aria-expanded="false"> Click me! </button>
<dialog id="myDialog">
<p> Hello, I’m a native dialog box! </p>
</dialog>
You can use this Javascript:
import A11yAware from 'A11yAware';
const buttonProxy = new A11yAware('#triggerButton');
buttonProxy.addToggleListener();
… To show and hide the dialog box, while correctly updating the state of the ARIA attributes, for example, aria-expanded
.
Missing or incorrect ARIA is reported via helpful assertion errors in the browser console.
Aligning functionality with accessibility has to be a good thing 💡♿️
Neat, huh?
The library exports the <a11y-aware>
custom element – see the demo.
<a11y-aware>
<button … > … </button>
<dialog … > … </dialog>
</a11y-aware>
And, you can make accessibility issues more visible with a guided mode:
<a11y-aware guided="true">
<button … > … </button>
<dialog … > … </dialog>
</a11y-aware>
The library currently tests for and/or supports(*) the following HTML elements and attributes:
<dialog>
element, and the show()
, showModal()
and close()
methods on the HTMLDialogElement
class,hidden
global attribute,aria-controls
, aria-expanded
and aria-haspopup
attributes,role="listbox"
, role="dialog"
…FAQs
Micro-library & custom element that rewards accessible, semantic HTML and minimal, well-formed ARIA!
The npm package a11y-aware receives a total of 5 weekly downloads. As such, a11y-aware popularity was classified as not popular.
We found that a11y-aware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.