Home / Function/ TitleElement() — svelte Function Reference

TitleElement() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b01b8ee0_9995_2de2_5e43_8c005788f318["TitleElement()"]
  9d924d9b_9a17_46f2_7f76_ca48c7193dd1["TitleElement.js"]
  b01b8ee0_9995_2de2_5e43_8c005788f318 -->|defined in| 9d924d9b_9a17_46f2_7f76_ca48c7193dd1
  7c94a4d6_a02d_0d76_1976_48dfeacab90e["title_illegal_attribute()"]
  b01b8ee0_9995_2de2_5e43_8c005788f318 -->|calls| 7c94a4d6_a02d_0d76_1976_48dfeacab90e
  27badca7_891d_dea1_46e7_4cf496eb6cff["title_invalid_content()"]
  b01b8ee0_9995_2de2_5e43_8c005788f318 -->|calls| 27badca7_891d_dea1_46e7_4cf496eb6cff
  style b01b8ee0_9995_2de2_5e43_8c005788f318 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js lines 9–21

export function TitleElement(node, context) {
	for (const attribute of node.attributes) {
		e.title_illegal_attribute(attribute);
	}

	for (const child of node.fragment.nodes) {
		if (child.type !== 'Text' && child.type !== 'ExpressionTag') {
			e.title_invalid_content(child);
		}
	}

	context.next();
}

Domain

Subdomains

Frequently Asked Questions

What does TitleElement() do?
TitleElement() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js.
Where is TitleElement() defined?
TitleElement() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js at line 9.
What does TitleElement() call?
TitleElement() calls 2 function(s): title_illegal_attribute, title_invalid_content.

Analyze Your Own Codebase

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

Try Supermodel Free