Home / Function/ illegal_element_attribute() — svelte Function Reference

illegal_element_attribute() — svelte Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  dcec6a8e_1f79_7d8f_2200_527b5ec5246a["illegal_element_attribute()"]
  495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"]
  dcec6a8e_1f79_7d8f_2200_527b5ec5246a -->|defined in| 495501a4_a342_6a4d_ac11_e3e2fee8b218
  aef96808_d114_2060_4f05_484cdd3a053a["SvelteDocument()"]
  aef96808_d114_2060_4f05_484cdd3a053a -->|calls| dcec6a8e_1f79_7d8f_2200_527b5ec5246a
  cc74c006_b541_7412_5b82_a3e086c65c31["SvelteWindow()"]
  cc74c006_b541_7412_5b82_a3e086c65c31 -->|calls| dcec6a8e_1f79_7d8f_2200_527b5ec5246a
  style dcec6a8e_1f79_7d8f_2200_527b5ec5246a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/errors.js lines 1175–1177

export function illegal_element_attribute(node, name) {
	e(node, 'illegal_element_attribute', `\`<${name}>\` does not support non-event attributes or spread attributes\nhttps://svelte.dev/e/illegal_element_attribute`);
}

Domain

Subdomains

Frequently Asked Questions

What does illegal_element_attribute() do?
illegal_element_attribute() is a function in the svelte codebase, defined in packages/svelte/src/compiler/errors.js.
Where is illegal_element_attribute() defined?
illegal_element_attribute() is defined in packages/svelte/src/compiler/errors.js at line 1175.
What calls illegal_element_attribute()?
illegal_element_attribute() is called by 2 function(s): SvelteDocument, SvelteWindow.

Analyze Your Own Codebase

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

Try Supermodel Free