Merge pull request #2979 from lightpanda-io/cleanup-cells-match

minor: cleanup cells matching logic.
This commit is contained in:
Karl Seguin
2026-07-16 16:02:45 +08:00
committed by GitHub

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;