Enums§
Functions§
- check_
document_ 🔒children - 親の(Document としての)子の制約の検査(pre-insert と replace で共通。
replacingは置き換え対象の子)。 - children_
of 🔒 - convert_
nodes 🔒 - 「nodes を 1 つのノードにする」(ParentNode/ChildNode の変種メソッド)。ノードでない値は文字列にして Text にする。
2 つ以上なら DocumentFragment にまとめる(所有文書は
owner)。Noneは空。 - dom_
after this.after(...nodes)。- dom_
append this.append(...nodes)。- dom_
append_ child this.appendChild(node)。- dom_
before this.before(...nodes)。- dom_
insert_ before this.insertBefore(node, child)。childが null/undefined なら末尾。- dom_
prepend this.prepend(...nodes)。- dom_
remove_ child this.removeChild(child)。- dom_
replace_ child this.replaceChild(node, child)。置き換えられたchildを返す。- dom_
replace_ children this.replaceChildren(...nodes)。- dom_
replace_ with this.replaceWith(...nodes)。- hierarchy 🔒
- is_
host_ 🔒including_ inclusive_ ancestor nodeがparentの「ホストを含む包含的な祖先」か。- kind_of 🔒
- node_
arg 🔒 - 引数がノードか。ノードなら
Ok(Some(idx))(主文書のdocumentはOk(None)で種類は Document)。 - owner_
doc_ 🔒of_ node - par_
kind 🔒 - par_of 🔒
thisが親として扱える対象か(DOM ノード、または主文書)。- validate_
insert 🔒 - DOM Standard の「ensure pre-insertion validity」(
replacingは §4.2.4 の replace の検査)。 - validate_
insert_ 🔒inner - viable_
sibling 🔒 - 兄弟(
self_idxの親の子)のうち、aに含まれない最初のもの(forwardなら後ろ向き、でなければ前向き)。