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