dom: implement document.createProcessingInstruction

This commit is contained in:
Pierre Tachoire
2023-12-07 16:48:02 +01:00
parent 24ec5f554d
commit d13da6ffab
5 changed files with 41 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ pub const Node = struct {
.comment => .{ .Comment = @as(*parser.Comment, @ptrCast(node)) },
.text => .{ .Text = @as(*parser.Text, @ptrCast(node)) },
.cdata_section => .{ .CDATASection = @as(*parser.CDATASection, @ptrCast(node)) },
.processing_instruction => .{ .ProcessingInstruction = @as(*parser.ProcessingInstruction, @ptrCast(node)) },
.document => .{ .HTMLDocument = @as(*parser.DocumentHTML, @ptrCast(node)) },
.document_type => .{ .DocumentType = @as(*parser.DocumentType, @ptrCast(node)) },
.attribute => .{ .Attr = @as(*parser.Attribute, @ptrCast(node)) },