Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/html/Element.zig
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub const Categories = packed struct {
sectioning: bool = false,
heading: bool = false,
interactive: bool = false,
// embedded: bool = false,
embedded: bool = false,

pub const none: Categories = .{};
pub const all: Categories = .{
Expand All @@ -176,7 +176,7 @@ pub const Categories = packed struct {
.sectioning = true,
.heading = true,
.interactive = true,
// .embedded = true,
.embedded = true,
};
// Just for clarity
pub const transparent: Categories = .all;
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/audio_video.zig
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ pub const audio: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
},
.content = .transparent,
},
.meta = .{
.categories_superset = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
.interactive = true,
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/canvas.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ pub const canvas: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
},
.content = .transparent,
},
.meta = .{
.categories_superset = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
},
.content_reject = .{
.interactive = true,
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/embed.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub const embed: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
.interactive = true,
},
.content = .none,
Expand All @@ -24,7 +24,7 @@ pub const embed: Element = .{
.categories_superset = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
.interactive = true,
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/iframe.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub const iframe: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
.interactive = true,
},
.content = .none,
Expand All @@ -25,7 +25,7 @@ pub const iframe: Element = .{
.categories_superset = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
.interactive = true,
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/img.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ pub const img: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
},
.content = .none, // void
},
.meta = .{
.categories_superset = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
.interactive = true,
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/math.zig
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const AttributeSet = Attribute.AttributeSet;
pub const math: Element = .{
.tag = .math,
.model = .{
.categories = .{ .flow = true },
.categories = .{ .flow = true, .phrasing = true, .embedded = true },
.content = .none,
},
.meta = .{
.categories_superset = .{ .flow = true },
.categories_superset = .{ .flow = true, .phrasing = true, .embedded = true },
},
.attributes = .static,
.content = .model,
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/object.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ pub const object: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
},
.content = .transparent,
},
.meta = .{
.categories_superset = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
},
},
.attributes = .{
Expand Down
2 changes: 1 addition & 1 deletion src/html/elements/picture.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub const picture: Element = .{
.categories = .{
.flow = true,
.phrasing = true,
// .embedded = true,
.embedded = true,
// .palpable = true,
},
.content = .none,
Expand Down
4 changes: 2 additions & 2 deletions src/html/elements/svg.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const Element = @import("../Element.zig");
pub const svg: Element = .{
.tag = .svg,
.model = .{
.categories = .{ .flow = true },
.categories = .{ .flow = true, .phrasing = true, .embedded = true },
.content = .none,
},
.meta = .{
.categories_superset = .{ .flow = true },
.categories_superset = .{ .flow = true, .phrasing = true, .embedded = true },
},
.attributes = .manual, // we just don't do it
.content = .model,
Expand Down