pub fn dom_contains(
it: &mut Interp,
this: Value,
a: &[Value],
) -> Result<Value, Value>Expand description
node.contains(other)(DOM 標準。other が node 自身または子孫かどうか。
click-outside 判定などで広く使われる)が丸ごと未対応だった。既存の
is_ancestor_of() は「idx 自身は含まない」仕様のため、仕様どおり自身も
含めるにはここで等価チェックを補う。