mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Update src/dom/document.zig
Co-authored-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -194,7 +194,7 @@ pub const Document = struct {
|
||||
|
||||
// TODO netsurf doesn't handle query selectors. We have to implement a
|
||||
// solution by ourselves.
|
||||
// We handle only * and single id selector like `#foo`.
|
||||
// For now we handle only * and single id selector like `#foo`.
|
||||
pub fn _querySelector(self: *parser.Document, selectors: []const u8) !?ElementUnion {
|
||||
if (selectors.len == 0) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user