Skip to content

Commit f1db8a0

Browse files
authored
Correct ariaChecked usage in ElementInternals example
1 parent 07eab5c commit f1db8a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69039,14 +69039,14 @@ customElements.define('my-checkbox', MyCheckbox);</code></pre>
6903969039
this.addEventListener('click', this._onClick.bind(this));
6904069040

6904169041
<mark> this._internals.role = 'checkbox';
69042-
this._internals.ariaChecked = false;</mark>
69042+
this._internals.ariaChecked = 'false';</mark>
6904369043
}
6904469044

6904569045
get form() { return this._internals.form; }
6904669046
get name() { return this.getAttribute('name'); }
6904769047
get type() { return this.localName; }
6904869048

69049-
get checked() { return this.getAttribute('checked'); }
69049+
get checked() { return this.hasAttribute('checked'); }
6905069050
set checked(flag) { this.toggleAttribute('checked', Boolean(flag)); }
6905169051

6905269052
attributeChangedCallback(name, oldValue, newValue) {

0 commit comments

Comments
 (0)