Socket
Socket
Sign inDemoInstall

dom-accessibility-api

Package Overview
Dependencies
0
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.15 to 0.5.16

9

dist/accessible-name-and-description.js

@@ -412,9 +412,14 @@ "use strict";

// 2B
var labelElements = (0, _util.queryIdRefs)(current, "aria-labelledby");
var labelAttributeNode = (0, _util.isElement)(current) ? current.getAttributeNode("aria-labelledby") : null;
// TODO: Do we generally need to block query IdRefs of attributes we have already consulted?
var labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? (0, _util.queryIdRefs)(current, "aria-labelledby") : [];
if (compute === "name" && !context.isReferenced && labelElements.length > 0) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Can't be null here otherwise labelElements would be empty
consultedNodes.add(labelAttributeNode);
return labelElements.map(function (element) {
// TODO: Chrome will consider repeated values i.e. use a node multiple times while we'll bail out in computeTextAlternative.
return computeTextAlternative(element, {
isEmbeddedInLabel: context.isEmbeddedInLabel,
isReferenced: true,
// thais isn't recursion as specified, otherwise we would skip
// this isn't recursion as specified, otherwise we would skip
// `aria-label` in

@@ -421,0 +426,0 @@ // <input id="myself" aria-label="foo" aria-labelledby="myself"

{
"name": "dom-accessibility-api",
"description": "Implements https://w3c.github.io/accname/",
"version": "0.5.15",
"version": "0.5.16",
"main": "dist/index.js",

@@ -66,3 +66,3 @@ "module": "dist/index.mjs",

"jsdom": "^20.0.0",
"minimatch": "^5.0.0",
"minimatch": "^6.0.0",
"mocha": "^10.0.0",

@@ -74,3 +74,3 @@ "mocha-sugar-free": "^1.4.0",

"request-promise-native": "^1.0.9",
"rimraf": "^3.0.2",
"rimraf": "^4.0.0",
"serve": "^14.0.0",

@@ -77,0 +77,0 @@ "typescript": "^4.3.2"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc