- From: Dominic Cooney <notifications@github.com>
- Date: Thu, 14 Sep 2017 01:49:52 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 September 2017 01:50:24 UTC
@annevk wrote: > I think I'd prefer <shadowroot ... Using ```<template ...>``` would make this much easier to polyfill. For example one could write a custom element which does the parent node stuffing and the syntax would look like ```<template is="shadow-root" shadow="...``` I guess it will be easier to add "popping the element stack and the element is a shadow-setting template" steps to the HTML parser than to separate out the context-inheriting stuff of the template to reuse it for shadowroot. If the idea is to avoid the adoption tree walk by creating the nodes in the target document then, yeah, not complicating template is better. The inoperativeness of template parsing (specifically not running script and custom elements) would be tricky to preserve. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/510#issuecomment-329345645
Received on Thursday, 14 September 2017 01:50:24 UTC