This is ready for review (confirmations below are mostly for stuff that predates this PR). I want to answer them, but that can happen as a post process, and the docs are useful if we can't get proper answers.
What are the implications if something is cloned, or it can't be cloned.
What happens to the focus if it is not delegated
The mode is accessible from the HTMLTemplateElement - can it be changed? Can you create a new shadow DOM by cloning such and element, modifying the mode, and then adding it to the DOM.
Last of all, the examples are not "Live samples" - I did write some test code for them though. I think I may be able to get this to work "Live" when some of the new safeHTML APIs are supported but they are too new.
This documents:
HTMLTemplateElement.shadowRootClonable
andshadowrootclonable
attribute of the<template>
element - in progressHTMLTemplateElement.shadowRootDelegatesFocus
andshadowrootdelegatesfocus
attribute of the<template>
elementHTMLTemplateElement.shadowRootMode
(attribute already done)This is ready for review (confirmations below are mostly for stuff that predates this PR). I want to answer them, but that can happen as a post process, and the docs are useful if we can't get proper answers.
I'm still waiting on a few confirmations in https://bugzilla.mozilla.org/show_bug.cgi?id=1880188#c5 and https://github.com/mdn/content/pull/33325#discussion_r1584290677 for stuff like:
Last of all, the examples are not "Live samples" - I did write some test code for them though. I think I may be able to get this to work "Live" when some of the new safeHTML APIs are supported but they are too new.
Related docs work in #33160