Re: [whatwg/dom] Declarative Shadow DOM (#510)

I'm also new to the process.

I think `<shadowroot>` makes sense when attaching the shadow DOM directly to the `<shadowroot>`'s parent element. But I find @sebmarkbage's `<template attachto>` suggestion quite interesting and strictly more powerful.

Especially if, as @slightlyoff points out, it would require "extraordinary lift" to define and implement `<shadowroot>`, well, so much the worse for `<shadowroot>`.

I'm also quite intrigued by @tjmonsi's suggestion to declaratively define custom elements and their shadow DOM with something like `<template tag="my-custom">`. That seems really nice in its own right, and would also provide 95% of the value of `<template attachto>`. (Just give the `attachto` element a custom tag name and use `<template tag>` instead.)

-- 
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-333396081

Received on Sunday, 1 October 2017 18:24:17 UTC