get_attributes() — svelte Function Reference
Architecture documentation for the get_attributes() function in attributes.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 318223ca_87d5_a1fe_45e4_c1304dea610b["get_attributes()"] 0acd2537_e1bf_d7ae_30d5_407378cfa4d3["attributes.js"] 318223ca_87d5_a1fe_45e4_c1304dea610b -->|defined in| 0acd2537_e1bf_d7ae_30d5_407378cfa4d3 d5013b26_4f11_a540_4e0e_615bff6582b2["set_value()"] d5013b26_4f11_a540_4e0e_615bff6582b2 -->|calls| 318223ca_87d5_a1fe_45e4_c1304dea610b cb0d0e0e_79db_0e2a_e0ce_0443fb7686c4["set_checked()"] cb0d0e0e_79db_0e2a_e0ce_0443fb7686c4 -->|calls| 318223ca_87d5_a1fe_45e4_c1304dea610b a305388e_cd72_059e_c54e_36001ca30e0a["set_attribute()"] a305388e_cd72_059e_c54e_36001ca30e0a -->|calls| 318223ca_87d5_a1fe_45e4_c1304dea610b 4c70ef10_16f1_40f4_1d51_8a7169bd1dba["set_attributes()"] 4c70ef10_16f1_40f4_1d51_8a7169bd1dba -->|calls| 318223ca_87d5_a1fe_45e4_c1304dea610b style 318223ca_87d5_a1fe_45e4_c1304dea610b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/elements/attributes.js lines 562–570
function get_attributes(element) {
return /** @type {Record<string | symbol, unknown>} **/ (
// @ts-expect-error
element.__attributes ??= {
[IS_CUSTOM_ELEMENT]: element.nodeName.includes('-'),
[IS_HTML]: element.namespaceURI === NAMESPACE_HTML
}
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does get_attributes() do?
get_attributes() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/elements/attributes.js.
Where is get_attributes() defined?
get_attributes() is defined in packages/svelte/src/internal/client/dom/elements/attributes.js at line 562.
What calls get_attributes()?
get_attributes() is called by 4 function(s): set_attribute, set_attributes, set_checked, set_value.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free