MCPcopy
hub / github.com/sveltejs/svelte / is_custom_element_node

Function is_custom_element_node

packages/svelte/src/compiler/phases/nodes.js:40–46  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

38 * @returns {boolean}
39 */
40export function is_custom_element_node(node) {
41 return (
42 node.type === 'RegularElement' &&
43 (node.name.includes('-') ||
44 node.attributes.some((attr) => attr.type === 'Attribute' && attr.name === 'is'))
45 );
46}
47
48/**
49 * @param {string} name

Callers 7

RegularElementFunction · 0.90
is_static_elementFunction · 0.90
prepare_element_spreadFunction · 0.90
analyze_componentFunction · 0.90
RegularElementFunction · 0.90
validate_attributeFunction · 0.90
validate_slot_attributeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected