1 impl HTMLTableElement {
3 if number_of_row_elements == 0 {
4 if let Some(last_tbody) = node.rev_children()
5 .filter_map(DomRoot::downcast::<Element>)
6 .find(|n| n.is::<HTMLTableSectionElement>() && n.local_name() == &local_name!("tbody")) {
7 last_tbody.upcast::<Node>().AppendChild(new_row.upcast::<Node>())
8 .expect("InsertRow failed to append first row.");
12 if number_of_row_elements == 0 {
13 if let Some(last_tbody) = node
14 .find(|n| n.is::<HTMLTableSectionElement>() && n.local_name() == &local_name!("tbody")) {
15 last_tbody.upcast::<Node>().AppendChild(new_row.upcast::<Node>())
16 .expect("InsertRow failed to append first row.");