mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
netsurf: move to public only API
And add some Node APIs: - getters: firstChild, lastChild, nextSibling, previoussibling, parentNode, parentElement, nodeName, nodeType, ownerDocument, isConnected - getters/setters: nodeValue, textContent - methods: appendChild And some test comptime optimizations on Document Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -5,7 +5,8 @@ const generate = @import("generate.zig");
|
||||
|
||||
const parser = @import("netsurf.zig");
|
||||
const DOM = @import("dom.zig");
|
||||
const testExecFn = @import("html/document.zig").testExecFn;
|
||||
const docTestExecFn = @import("html/document.zig").testExecFn;
|
||||
const nodeTestExecFn = @import("html/document.zig").testExecFn;
|
||||
|
||||
var doc: *parser.DocumentHTML = undefined;
|
||||
|
||||
@@ -23,7 +24,8 @@ fn testsExecFn(
|
||||
try js_env.addObject(apis, doc, "document");
|
||||
|
||||
// run tests
|
||||
try testExecFn(alloc, js_env, apis);
|
||||
try docTestExecFn(alloc, js_env, apis);
|
||||
try nodeTestExecFn(alloc, js_env, apis);
|
||||
}
|
||||
|
||||
test {
|
||||
|
||||
Reference in New Issue
Block a user