mirror of
				https://github.com/lightpanda-io/browser.git
				synced 2025-10-29 15:13:28 +00:00 
			
		
		
		
	netsurf: use parse helper
This commit is contained in:
		| @@ -57,7 +57,7 @@ pub fn main() !void { | ||||
|     defer arena.deinit(); | ||||
|  | ||||
|     // document | ||||
|     doc = try parser.documentHTMLParseFromFile(arena.allocator(), "test.html"); | ||||
|     doc = try parser.documentHTMLParseFromFileAlloc(arena.allocator(), "test.html"); | ||||
|     defer parser.documentHTMLClose(doc); | ||||
|  | ||||
|     // remove socket file of internal server | ||||
|   | ||||
| @@ -38,7 +38,7 @@ pub fn main() !void { | ||||
|     defer arena.deinit(); | ||||
|  | ||||
|     // document | ||||
|     doc = try parser.documentHTMLParseFromFile(arena.allocator(), "test.html"); | ||||
|     doc = try parser.documentHTMLParseFromFileAlloc(arena.allocator(), "test.html"); | ||||
|     defer parser.documentHTMLClose(doc); | ||||
|  | ||||
|     // create JS vm | ||||
|   | ||||
| @@ -38,7 +38,7 @@ test { | ||||
|     const apis = jsruntime.compile(DOM.Interfaces); | ||||
|  | ||||
|     // document | ||||
|     doc = try parser.documentHTMLParseFromFile(std.testing.allocator, "test.html"); | ||||
|     doc = try parser.documentHTMLParseFromFileAlloc(std.testing.allocator, "test.html"); | ||||
|     defer parser.documentHTMLClose(doc); | ||||
|  | ||||
|     // create JS vm | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pierre Tachoire
					Pierre Tachoire