@markuplint/ml-spec
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -14,3 +14,3 @@ import { ariaSpecs } from '../specs/aria-specs.js'; | ||
el, version, assumeSingleNode = false) { | ||
const implicitRole = getImplicitRole(specs, el, version); | ||
let lazyImplicitRole; | ||
const explicitRole = getExplicitRole(specs, el, version); | ||
@@ -20,3 +20,3 @@ const computedRole = explicitRole.role | ||
: { | ||
...implicitRole, | ||
...(lazyImplicitRole = getImplicitRole(specs, el, version)), | ||
errorType: explicitRole.errorType === 'NO_EXPLICIT' ? undefined : explicitRole.errorType, | ||
@@ -132,2 +132,3 @@ }; | ||
} | ||
const implicitRole = lazyImplicitRole ?? getImplicitRole(specs, el, version); | ||
/** | ||
@@ -134,0 +135,0 @@ * > If an element is focusable, |
@@ -70,5 +70,4 @@ import { isPresentational } from '../specs/is-presentational.js'; | ||
for (const child of el.children) { | ||
const implicitRole = getImplicitRole(specs, child, version); | ||
const explicitRole = getExplicitRole(specs, child, version); | ||
const computed = explicitRole.role ? explicitRole : implicitRole; | ||
const computed = explicitRole.role ? explicitRole : getImplicitRole(specs, child, version); | ||
if (isPresentational(computed.role?.name)) { | ||
@@ -75,0 +74,0 @@ owned.push(...getClosestNonPresentationalDescendants(child, specs, version)); |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -36,3 +36,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"@markuplint/ml-ast": "4.0.1", | ||
"@markuplint/types": "4.0.1", | ||
"@markuplint/types": "4.0.2", | ||
"dom-accessibility-api": "^0.6.3", | ||
@@ -43,6 +43,6 @@ "is-plain-object": "^5.0.0", | ||
"devDependencies": { | ||
"@markuplint/test-tools": "4.0.1", | ||
"@markuplint/test-tools": "4.0.2", | ||
"json-schema-to-typescript": "13.1.2" | ||
}, | ||
"gitHead": "bf84b391b580a8586fa7acaf56eb2e8114c8e33e" | ||
"gitHead": "10ce6c8374106f311eeaaffbae8f3fdcbb40f877" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171816
121
+ Added@markuplint/types@4.0.2(transitive)
- Removed@markuplint/types@4.0.1(transitive)
Updated@markuplint/types@4.0.2