validate_attribute_name() — svelte Function Reference
Architecture documentation for the validate_attribute_name() function in attribute.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD cea20d98_b8d1_aa5c_5f46_4ac417b7053c["validate_attribute_name()"] 32df1fa2_adf7_5122_0b02_c399ea508ae0["attribute.js"] cea20d98_b8d1_aa5c_5f46_4ac417b7053c -->|defined in| 32df1fa2_adf7_5122_0b02_c399ea508ae0 c2e078e7_8b02_06d2_5983_59b1af376889["visit_component()"] c2e078e7_8b02_06d2_5983_59b1af376889 -->|calls| cea20d98_b8d1_aa5c_5f46_4ac417b7053c 8b731563_0657_df8d_6a4b_cd33990e2ed2["validate_element()"] 8b731563_0657_df8d_6a4b_cd33990e2ed2 -->|calls| cea20d98_b8d1_aa5c_5f46_4ac417b7053c c631f093_07cf_ae1b_c24c_3f8c21352845["attribute_illegal_colon()"] cea20d98_b8d1_aa5c_5f46_4ac417b7053c -->|calls| c631f093_07cf_ae1b_c24c_3f8c21352845 style cea20d98_b8d1_aa5c_5f46_4ac417b7053c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js lines 12–21
export function validate_attribute_name(attribute) {
if (
attribute.name.includes(':') &&
!attribute.name.startsWith('xmlns:') &&
!attribute.name.startsWith('xlink:') &&
!attribute.name.startsWith('xml:')
) {
w.attribute_illegal_colon(attribute);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does validate_attribute_name() do?
validate_attribute_name() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js.
Where is validate_attribute_name() defined?
validate_attribute_name() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js at line 12.
What does validate_attribute_name() call?
validate_attribute_name() calls 1 function(s): attribute_illegal_colon.
What calls validate_attribute_name()?
validate_attribute_name() is called by 2 function(s): validate_element, visit_component.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free