@markuplint/ml-spec
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -6,3 +6,7 @@ // @ts-ignore | ||
el) { | ||
return computeAccessibleName(el); | ||
const name = computeAccessibleName(el); | ||
if (!name.trim() && el.nodeName === 'INPUT') { | ||
return el.getAttribute('placeholder')?.trim() ?? ''; | ||
} | ||
return name; | ||
} |
@@ -11,2 +11,3 @@ import { ariaSpecs } from './aria-specs.js'; | ||
isAbstract: !!role.isAbstract, | ||
deprecated: !!role.deprecated, | ||
requiredContextRole: role.requiredContextRole ?? [], | ||
@@ -13,0 +14,0 @@ requiredOwnedElements: role.requiredOwnedElements ?? [], |
@@ -141,2 +141,3 @@ import type { ARIA } from './aria.js'; | ||
readonly isAbstract: boolean; | ||
readonly deprecated: boolean; | ||
readonly requiredContextRole: readonly string[]; | ||
@@ -143,0 +144,0 @@ readonly requiredOwnedElements: readonly string[]; |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -42,6 +42,6 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"devDependencies": { | ||
"@markuplint/test-tools": "4.0.2", | ||
"@markuplint/test-tools": "4.1.0", | ||
"json-schema-to-typescript": "13.1.2" | ||
}, | ||
"gitHead": "10ce6c8374106f311eeaaffbae8f3fdcbb40f877" | ||
"gitHead": "d5d99c5d84b676f8b2bb84684533ed74cf2f1da6" | ||
} |
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
172030
3013