mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
fix handleclick for hash href on anchor
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user