has_disabled_attribute() — svelte Function Reference
Architecture documentation for the has_disabled_attribute() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e53b02aa_58fa_7ae3_a244_0cf9b2805ed2["has_disabled_attribute()"] b389a21f_6de7_2a41_34f3_8efbf9045c9c["index.js"] e53b02aa_58fa_7ae3_a244_0cf9b2805ed2 -->|defined in| b389a21f_6de7_2a41_34f3_8efbf9045c9c c342967b_b314_8027_476d_d085ed0e13f0["check_element()"] c342967b_b314_8027_476d_d085ed0e13f0 -->|calls| e53b02aa_58fa_7ae3_a244_0cf9b2805ed2 17dd7346_e043_e143_0605_8c529acf45a0["get_static_value()"] e53b02aa_58fa_7ae3_a244_0cf9b2805ed2 -->|calls| 17dd7346_e043_e143_0605_8c529acf45a0 82c454e1_d40e_f288_e9f9_3476ef8e8419["get()"] e53b02aa_58fa_7ae3_a244_0cf9b2805ed2 -->|calls| 82c454e1_d40e_f288_e9f9_3476ef8e8419 style e53b02aa_58fa_7ae3_a244_0cf9b2805ed2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js lines 594–608
function has_disabled_attribute(attribute_map) {
const disabled_attr_value = get_static_value(attribute_map.get('disabled'));
if (disabled_attr_value) {
return true;
}
const aria_disabled_attr = attribute_map.get('aria-disabled');
if (aria_disabled_attr) {
const aria_disabled_attr_value = get_static_value(aria_disabled_attr);
if (aria_disabled_attr_value === 'true') {
return true;
}
}
return false;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does has_disabled_attribute() do?
has_disabled_attribute() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js.
Where is has_disabled_attribute() defined?
has_disabled_attribute() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js at line 594.
What does has_disabled_attribute() call?
has_disabled_attribute() calls 2 function(s): get, get_static_value.
What calls has_disabled_attribute()?
has_disabled_attribute() is called by 1 function(s): check_element.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free