Skip to main content

table_create_section

Function table_create_section 

Source
fn table_create_section(
    it: &mut Interp,
    table_idx: usize,
    tag: &str,
    append: bool,
) -> Value
Expand description

table.createTHead()/.createTFoot()/.createCaption()(丸ごと未対応 だった。2026-07-17 発見。仕様上「既存の該当要素があればそれを返す、 無ければ新規作成して挿入する」冪等な動作)。直接の子のみを対象とする (tHead/tFoot/captionゲッターと同じ制約)。captionは最初の子、 theadは最初の子(captionの後)、tfootは最後の子として挿入する 簡略実装(colgroupとの相対位置関係は厳密には対象外)。