mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
node: add lookupPrefix method (NOT TESTED)
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -175,6 +175,11 @@ pub const Node = struct {
|
||||
return parser.nodeIsSameNode(self, other);
|
||||
}
|
||||
|
||||
pub fn _lookupPrefix(self: *parser.Node, namespace: ?[]const u8) ?[]const u8 {
|
||||
// TODO: other is not an optional parameter, but can be null.
|
||||
return parser.nodeLookupPrefix(self, namespace);
|
||||
}
|
||||
|
||||
pub fn _normalize(self: *parser.Node) void {
|
||||
return parser.nodeNormalize(self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user