Skip to main content

children_with_links

Function children_with_links 

Source
pub fn children_with_links(
    children: &[usize],
    shadow_root: Option<usize>,
    content_frag: Option<usize>,
) -> Vec<usize>
Expand description

到達可能性の判定に使うノードの「子」の辺(2026-11-19)。

実の子に加えて、シャドウ木の根(持ち主の要素の辺)と <template> の中身のフラグメントも辺に数える。 後者 2 つは親子ではなく別の表・属性の添字でつながるため、数えないと生きている <template> の 中身(dom-if・dom-repeat など)が孤立ノードと見なされて原型・expando を消されていた。