Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
NodeTemplatePart.replace
type signature
Replace `ChildNode` with `Node` in `NodeTemplatePart.replace(...nodes)` signature. According to the [3.2. Template Parts and Custom Template Process Callback][] section of the specification, the `NodeTemplatePart` interface declares `replace(...nodes: Array<string | Node>)`: ```typescript interface NodeTemplatePart : TemplatePart { readonly attribute ContainerNode parentNode; readonly attribute Node? previousSibling; readonly attribute Node? nextSibling; [NewObject] readonly NodeList replacementNodes; void replace((Node or DOMString)... nodes); void replaceHTML(DOMString html); } ``` This commit changes the type signature and adds coverage for replacing a `NodeTemplatePart` with a `DocumentFragment` instance. [3.2. Template Parts and Custom Template Process Callback]: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Template-Instantiation.md#32-template-parts-and-custom-template-process-callback
- Loading branch information