Skip to content

Commit

Permalink
Correct ariaChecked usage in ElementInternals example
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Oct 27, 2022
1 parent 07eab5c commit f1db8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -69039,14 +69039,14 @@ customElements.define('my-checkbox', MyCheckbox);</code></pre>
this.addEventListener('click', this._onClick.bind(this));

<mark> this._internals.role = 'checkbox';
this._internals.ariaChecked = false;</mark>
this._internals.ariaChecked = 'false';</mark>
}

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

get checked() { return this.getAttribute('checked'); }
get checked() { return this.hasAttribute('checked'); }
set checked(flag) { this.toggleAttribute('checked', Boolean(flag)); }

attributeChangedCallback(name, oldValue, newValue) {
Expand Down

0 comments on commit f1db8a0

Please sign in to comment.