element-internals-polyfill
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.0.9](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.0.8...v0.0.9) (2020-04-26) | ||
### Bug Fixes | ||
* **polyfill:** change aria-descrbedby to aria-labelledby ([3cc5cd3](https://github.com/calebdwilliams/element-internals-polyfill/commit/3cc5cd31af66e298f9c8ffdb8a6c5fcf747162d2)) | ||
### [0.0.8](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.0.7...v0.0.8) (2020-04-26) | ||
@@ -7,0 +14,0 @@ |
@@ -52,3 +52,3 @@ (function () { | ||
labels[0].id = firstLabelId; | ||
ref.setAttribute('aria-describedby', firstLabelId); | ||
ref.setAttribute('aria-labelledby', firstLabelId); | ||
} | ||
@@ -226,2 +226,3 @@ }; | ||
setValidity(validityChanges, validationMessage) { | ||
const ref = refMap.get(this); | ||
if (!validityChanges) { | ||
@@ -243,2 +244,3 @@ throw new TypeError('Failed to execute \'setValidity\' on \'ElementInternals\': 1 argument required, but only 0 present.'); | ||
validationMessageMap.set(this, valid ? '' : validationMessage); | ||
ref.setAttribute('aria-invalid', !valid); | ||
this.reportValidity(); | ||
@@ -245,0 +247,0 @@ } |
{ | ||
"name": "element-internals-polyfill", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A polyfill for the element internals specification", | ||
@@ -5,0 +5,0 @@ "main": "/dist/element-internals.js", |
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
13616
254