Socket
Socket
Sign inDemoInstall

@vaadin/a11y-base

Package Overview
Dependencies
Maintainers
12
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/a11y-base - npm Package Compare versions

Comparing version 24.2.0-alpha11 to 24.2.0-alpha12

6

package.json
{
"name": "@vaadin/a11y-base",
"version": "24.2.0-alpha11",
"version": "24.2.0-alpha12",
"publishConfig": {

@@ -35,3 +35,3 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "24.2.0-alpha11",
"@vaadin/component-base": "24.2.0-alpha12",
"lit": "^2.0.0"

@@ -44,3 +44,3 @@ },

},
"gitHead": "a958207d5f6a09ca0e2dcf9f62194b3f92c8766a"
"gitHead": "854d2809340ef73f765350808bb92ed5c840d147"
}

@@ -27,8 +27,2 @@ /**

/**
* @param {Element | Shadow} node
* @return {Element | null}
*/
const unwrapHost = (node) => (node ? node.host || unwrapHost(node.parentNode) : null);
/**
* @param {?Node} node

@@ -64,11 +58,10 @@ * @return {boolean}

if (parent.contains(target)) {
return target;
let node = target;
while (node && node !== parent) {
if (parent.contains(node)) {
return target;
}
node = node.getRootNode().host;
}
const correctedTarget = unwrapHost(target);
if (correctedTarget && parent.contains(correctedTarget)) {
return correctedTarget;
}
logError(target, 'is not contained inside', parent);

@@ -115,3 +108,9 @@ return null;

elementsToKeep.add(el);
keep(el.parentNode);
const slot = el.assignedSlot;
if (slot) {
keep(slot);
}
keep(el.parentNode || el.host);
};

@@ -129,3 +128,5 @@

[...parent.children].forEach((node) => {
const root = parent.shadowRoot;
const children = root ? [...parent.children, ...root.children] : [...parent.children];
children.forEach((node) => {
// Skip elements that don't need to be hidden

@@ -132,0 +133,0 @@ if (['template', 'script', 'style'].includes(node.localName)) {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc