( owner: Node, tagName: K, )
| 18 | } |
| 19 | |
| 20 | export function createOwnedElement<K extends keyof HTMLElementTagNameMap>( |
| 21 | owner: Node, |
| 22 | tagName: K, |
| 23 | ): HTMLElementTagNameMap[K] { |
| 24 | return getOwnerDocument(owner).createElement(tagName); |
| 25 | } |
| 26 | |
| 27 | export function createOwnedTextNode(owner: Node, text: string): Text { |
| 28 | return getOwnerDocument(owner).createTextNode(text); |
no test coverage detected