minor: cleanup cells matching logic.

This commit is contained in:
Karl Seguin
2026-07-16 15:45:02 +08:00
parent f40fd3a0bc
commit 39dda124ae

View File

@@ -295,8 +295,7 @@ pub fn NodeLive(comptime mode: Mode) type {
.cells => {
// HTMLTableRowElement.cells: td and th children.
const el = node.is(Element) orelse return false;
const tag = el.getTag();
return tag == .td or tag == .th;
return el.is(Element.Html.TableCell) != null;
},
.selected_options => {
const el = node.is(Element) orelse return false;