merge_text_nodes() — svelte Function Reference
Architecture documentation for the merge_text_nodes() function in operations.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 2471b414_d833_0bea_1bc7_b19c0d8a6d6b["merge_text_nodes()"] 9a9bbc27_46b6_021c_6d77_f736ed4b40f0["operations.js"] 2471b414_d833_0bea_1bc7_b19c0d8a6d6b -->|defined in| 9a9bbc27_46b6_021c_6d77_f736ed4b40f0 eff50a8f_a21b_b3de_5c1d_5f88d6bb5ba8["child()"] eff50a8f_a21b_b3de_5c1d_5f88d6bb5ba8 -->|calls| 2471b414_d833_0bea_1bc7_b19c0d8a6d6b e2822fa9_ce29_121f_d14e_d030c9037844["first_child()"] e2822fa9_ce29_121f_d14e_d030c9037844 -->|calls| 2471b414_d833_0bea_1bc7_b19c0d8a6d6b 02445d40_4bf4_0107_e7cd_79455afdd781["sibling()"] 02445d40_4bf4_0107_e7cd_79455afdd781 -->|calls| 2471b414_d833_0bea_1bc7_b19c0d8a6d6b 5929fd71_de17_7d06_3c18_64495b1469f9["text()"] 5929fd71_de17_7d06_3c18_64495b1469f9 -->|calls| 2471b414_d833_0bea_1bc7_b19c0d8a6d6b style 2471b414_d833_0bea_1bc7_b19c0d8a6d6b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/operations.js lines 279–293
export function merge_text_nodes(text) {
if (/** @type {string} */ (text.nodeValue).length < 65536) {
return;
}
let next = text.nextSibling;
while (next !== null && next.nodeType === TEXT_NODE) {
next.remove();
/** @type {string} */ (text.nodeValue) += /** @type {string} */ (next.nodeValue);
next = text.nextSibling;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does merge_text_nodes() do?
merge_text_nodes() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/operations.js.
Where is merge_text_nodes() defined?
merge_text_nodes() is defined in packages/svelte/src/internal/client/dom/operations.js at line 279.
What calls merge_text_nodes()?
merge_text_nodes() is called by 4 function(s): child, first_child, sibling, text.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free