HtmlTag() — svelte Function Reference
Architecture documentation for the HtmlTag() function in HtmlTag.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD c9cd16b0_e8ae_550d_18c1_95f50b1ccee7["HtmlTag()"] 93b0ec70_ae65_2771_721b_d69136053c03["HtmlTag.js"] c9cd16b0_e8ae_550d_18c1_95f50b1ccee7 -->|defined in| 93b0ec70_ae65_2771_721b_d69136053c03 7148e639_69d8_a03d_3f08_bd23f41e718a["validate_opening_tag()"] c9cd16b0_e8ae_550d_18c1_95f50b1ccee7 -->|calls| 7148e639_69d8_a03d_3f08_bd23f41e718a 313d2a82_30ea_3161_3aad_0cc2094979aa["mark_subtree_dynamic()"] c9cd16b0_e8ae_550d_18c1_95f50b1ccee7 -->|calls| 313d2a82_30ea_3161_3aad_0cc2094979aa style c9cd16b0_e8ae_550d_18c1_95f50b1ccee7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js lines 10–19
export function HtmlTag(node, context) {
if (context.state.analysis.runes) {
validate_opening_tag(node, context.state, '@');
}
// unfortunately this is necessary in order to fix invalid HTML
mark_subtree_dynamic(context.path);
context.next({ ...context.state, expression: node.metadata.expression });
}
Domain
Subdomains
Source
Frequently Asked Questions
What does HtmlTag() do?
HtmlTag() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js.
Where is HtmlTag() defined?
HtmlTag() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js at line 10.
What does HtmlTag() call?
HtmlTag() calls 2 function(s): mark_subtree_dynamic, validate_opening_tag.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free