MCPcopy Create free account
hub / github.com/chhoumann/quickadd / createOwnedElement

Function createOwnedElement

src/utils/activeWindow.ts:20–25  ·  view source on GitHub ↗
(
	owner: Node,
	tagName: K,
)

Source from the content-addressed store, hash-verified

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

Callers 8

appendDevelopmentInfoRowFunction · 0.90
renderChoiceIconMethod · 0.90
createSuggestionPillFunction · 0.90
renderSuggestionMethod · 0.90
createTooltipMethod · 0.90
renderExactHighlightFunction · 0.90
renderFuzzyHighlightFunction · 0.90
addChoiceIconSettingFunction · 0.90

Calls 1

getOwnerDocumentFunction · 0.70

Tested by

no test coverage detected