1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/// The DOM attribute name used to store the dynamic node identifier on a placeholder element.
///
/// This attribute is assigned to every DynamicNode placeholder so the framework
/// can locate and manage the dynamic content during re-renders and cleanup.
pub const DATA_EUV_DYNAMIC_ID: &str = "data-euv-dynamic-id";
/// The DOM attribute name used to store signal inner addresses on an element.
///
/// This attribute stores a comma-separated list of signal inner pointer addresses
/// that are bound to the element, allowing cleanup during DOM subtree removal.
pub const DATA_EUV_SIGNAL_ADDRS: &str = "data-euv-signal-addrs";
/// The HTML tag name used for fragment placeholder elements.
///
/// Fragments are rendered as `<slot>` elements with `display:contents` style
/// so they don't create an extra DOM wrapper.
pub const FRAGMENT_TAG: &str = "slot";
/// The HTML tag name used for DynamicNode placeholder elements.
///
/// Dynamic nodes use `<div>` as a placeholder container with `display: contents`
/// style so the placeholder is invisible in the rendered output.
pub const DYNAMIC_PLACEHOLDER_TAG: &str = "div";
/// The inline style value used to make placeholder elements invisible.
///
/// Applied to fragment and dynamic node placeholder elements so they
/// don't affect the visual layout of the page.
pub const DISPLAY_CONTENTS_STYLE: &str = "display: contents;";
/// The inline style value for fragment placeholder elements.
///
/// Used to make `<slot>` fragment wrappers invisible in the rendered output.
pub const FRAGMENT_STYLE: &str = "display:contents";
/// The HTML `style` attribute name.
pub const ATTR_STYLE: &str = "style";
/// The CSS selector prefix for selecting by element ID.
pub const ID_SELECTOR_PREFIX: &str = "#";
/// The CSS selector prefix for selecting by class name.
pub const CLASS_SELECTOR_PREFIX: &str = ".";
/// The HTML `body` tag name, used as a default mount target.
pub const BODY_TAG: &str = "body";
/// The comma separator used for joining signal addresses in DOM attributes.
pub const SIGNAL_ADDRS_SEPARATOR: &str = ",";