| 1 | class CustomTextElement extends HTMLElement { |
| 2 | static formAssociated = true; |
| 3 | static observedAttributes = ["name", "id"]; |
| 4 | |
| 5 | constructor() { |
| 6 | super(); |
| 7 | this.internals_ = this.attachInternals(); |
| 8 | } |
| 9 | get form() { |
| 10 | return this.internals_ != null ? this.internals_.form : null; |
| 11 | } |
| 12 | get name() { |
| 13 | return this.getAttribute("name"); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | window.customElements.define("custom-text", CustomTextElement); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…