diff --git a/.changeset/shadow-root-template-fragment-binding.md b/.changeset/shadow-root-template-fragment-binding.md new file mode 100644 index 000000000..7a2a07a62 --- /dev/null +++ b/.changeset/shadow-root-template-fragment-binding.md @@ -0,0 +1,34 @@ +--- +"@tko/bind": minor +"@tko/utils": minor +"@tko/binding.foreach": patch +--- + +Allow `applyBindings` to run on `HTMLTemplateElement`, `DocumentFragment`, +and shadow-root subtrees + +`applyBindings` and `applyBindingsToDescendants` now accept any `Node` whose +`nodeType` is `ELEMENT_NODE`, `COMMENT_NODE`, or `DOCUMENT_FRAGMENT_NODE`, +which makes it possible to bind a shadow root, a document fragment, or a +`