mirror of
				https://github.com/lightpanda-io/browser.git
				synced 2025-10-30 07:31:47 +00:00 
			
		
		
		
	 fab03586a3
			
		
	
	fab03586a3
	
	
	
		
			
			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>
		
			
				
	
	
		
			40 lines
		
	
	
		
			960 B
		
	
	
	
		
			Zig
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			960 B
		
	
	
	
		
			Zig
		
	
	
	
	
	
| const generate = @import("generate.zig");
 | |
| 
 | |
| const Console = @import("jsruntime").Console;
 | |
| 
 | |
| // DOM
 | |
| const EventTarget = @import("dom/event_target.zig").EventTarget;
 | |
| const N = @import("dom/node.zig");
 | |
| const CharacterData = @import("dom/character_data.zig").CharacterData;
 | |
| const Comment = @import("dom/comment.zig").Comment;
 | |
| const Text = @import("dom/text.zig").Text;
 | |
| const Element = @import("dom/element.zig").Element;
 | |
| const Document = @import("dom/document.zig").Document;
 | |
| 
 | |
| // HTML
 | |
| pub const HTMLDocument = @import("html/document.zig").HTMLDocument;
 | |
| const HTMLElem = @import("html/elements.zig");
 | |
| 
 | |
| const E = @import("html/elements.zig");
 | |
| 
 | |
| // Interfaces
 | |
| const interfaces = .{
 | |
|     Console,
 | |
| 
 | |
|     // DOM
 | |
|     EventTarget,
 | |
|     N.Node,
 | |
|     N.Types,
 | |
|     CharacterData,
 | |
|     Comment,
 | |
|     Element,
 | |
|     Document,
 | |
| 
 | |
|     // HTML
 | |
|     HTMLDocument,
 | |
|     HTMLElem.HTMLElement,
 | |
|     HTMLElem.HTMLMediaElement,
 | |
|     HTMLElem.Types,
 | |
| };
 | |
| pub const Interfaces = generate.Tuple(interfaces);
 |