fix handleclick for hash href on anchor

This commit is contained in:
Muki Kiboigo
2026-01-04 20:28:34 -08:00
parent 7b0e256408
commit a8b4e8c1bc

View File

@@ -2723,11 +2723,6 @@ pub fn handleClick(self: *Page, target: *Node) !void {
return; return;
} }
if (std.mem.startsWith(u8, href, "#")) {
// Hash-only links (#foo) should be handled as same-document navigation
return;
}
if (std.mem.startsWith(u8, href, "javascript:")) { if (std.mem.startsWith(u8, href, "javascript:")) {
return; return;
} }