Skip to content

Commit

Permalink
Fix custom elements example getter
Browse files Browse the repository at this point in the history
Closes whatwg#6819. Closes whatwg#6825 by superseding it.
  • Loading branch information
Patil2099 authored and Mason Freed committed Jun 3, 2022
1 parent f7e3436 commit 5916dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -66987,7 +66987,7 @@ document.body.appendChild(flagIcon)</code></pre>
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 5916dd7

Please sign in to comment.