- From: TAMURA, Kent <notifications@github.com>
- Date: Wed, 28 Feb 2018 04:32:12 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 February 2018 04:32:38 UTC
Hooking ```ShadowRoot``` doesn't sounds reasonable in this case because not all participating custom elements need a shadow tree. For example, making a contenteditable element submittable doesn't need a shadow tree. ``` class SubmittableRichEdit extends HTMLElement { constructor() { super(); setAttribute('contentEditable', true); } formDataCallback(formData, form) { formData.append(getAttribute('name'), this.innerHTML); } formResetCallback() { this.textContent = ''; } } ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/187#issuecomment-369118425
Received on Wednesday, 28 February 2018 04:32:38 UTC