Skip to main content

dom_table_insert_row

Function dom_table_insert_row 

Source
pub fn dom_table_insert_row(
    it: &mut Interp,
    this: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

HTML5 Table DOM(table.insertRow/.deleteRow/.rowstr.insertCell/ .deleteCell/.cells)が丸ごと未対応だった(2026-07-17 発見。select. options.add/.remove と同じ「動的に構築する」定番イディオム)。thead/ tbody/tfoot を明示的にモデル化せず、常に文書順の descendants_by_tagstr/td/th を集約する簡略実装(新規行は「参照行の親」=既存の tbodyがあればその中、無ければtable直下へ挿入する)。