Lightpanda: the headless browser designed for AI and automation
`Document`: remove dead `Location` accessor
Halil Durakeb6321c61aee
diff --git a/src/browser/webapi/Document.zig b/src/browser/webapi/Document.zigindex 066494cde..dd29172ac 100644--- a/src/browser/webapi/Document.zig+++ b/src/browser/webapi/Document.zig@@ -50,7 +50,6 @@ const Document = @This();_type: Type,_proto: *Node,_frame: ?*Frame = null,-_location: ?*Location = null,_url: ?[:0]const u8 = null, // URL for documents created via DOMImplementation (about:blank)_ready_state: ReadyState = .loading,_current_script: ?*Element.Html.Script = null,diff --git a/src/browser/webapi/selector/List.zig b/src/browser/webapi/selector/List.zigindex a2576928d..c16064bfd 100644--- a/src/browser/webapi/selector/List.zig+++ b/src/browser/webapi/selector/List.zig@@ -619,7 +619,7 @@ fn matchesPseudoClass(el: *Node.Element, pseudo: Selector.PseudoClass, scope: *N},.target => {const element_id = el.getAttributeSafe(comptime .wrap("id")) orelse return false;- const location = frame.document._location orelse return false;+ const location = frame.document.getLocation() orelse return false;const hash = location.getHash();if (hash.len <= 1) return false;return std.mem.eql(u8, element_id, hash[1..]);