Home / Function/ element_invalid_self_closing_tag() — svelte Function Reference

element_invalid_self_closing_tag() — svelte Function Reference

Architecture documentation for the element_invalid_self_closing_tag() function in warnings.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  8a61757d_c424_a0b8_da34_55bf3652991d["element_invalid_self_closing_tag()"]
  56a689f9_11c0_cc76_bd60_41bb6dc96475["warnings.js"]
  8a61757d_c424_a0b8_da34_55bf3652991d -->|defined in| 56a689f9_11c0_cc76_bd60_41bb6dc96475
  874d992f_5e60_ebce_f4ce_ea5fed014bc4["RegularElement()"]
  874d992f_5e60_ebce_f4ce_ea5fed014bc4 -->|calls| 8a61757d_c424_a0b8_da34_55bf3652991d
  style 8a61757d_c424_a0b8_da34_55bf3652991d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/warnings.js lines 775–777

export function element_invalid_self_closing_tag(node, name) {
	w(node, 'element_invalid_self_closing_tag', `Self-closing HTML tags for non-void elements are ambiguous — use \`<${name} ...></${name}>\` rather than \`<${name} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does element_invalid_self_closing_tag() do?
element_invalid_self_closing_tag() is a function in the svelte codebase, defined in packages/svelte/src/compiler/warnings.js.
Where is element_invalid_self_closing_tag() defined?
element_invalid_self_closing_tag() is defined in packages/svelte/src/compiler/warnings.js at line 775.
What calls element_invalid_self_closing_tag()?
element_invalid_self_closing_tag() is called by 1 function(s): RegularElement.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free