diff options
Diffstat (limited to '')
-rw-r--r-- | src/deps/lol-html.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/deps/lol-html.zig b/src/deps/lol-html.zig index cd183ee5f..9a9137856 100644 --- a/src/deps/lol-html.zig +++ b/src/deps/lol-html.zig @@ -391,6 +391,8 @@ pub const Element = opaque { extern fn lol_html_element_remove(element: *const Element) void; extern fn lol_html_element_remove_and_keep_content(element: *const Element) void; extern fn lol_html_element_is_removed(element: *const Element) bool; + extern fn lol_html_element_is_self_closing(element: *const Element) bool; + extern fn lol_html_element_can_have_content(element: *const Element) bool; extern fn lol_html_element_user_data_set(element: *const Element, user_data: ?*anyopaque) void; extern fn lol_html_element_user_data_get(element: *const Element) ?*anyopaque; extern fn lol_html_element_add_end_tag_handler(element: *Element, end_tag_handler: lol_html_end_tag_handler_t, user_data: ?*anyopaque) c_int; @@ -493,6 +495,14 @@ pub const Element = opaque { auto_disable(); return lol_html_element_is_removed(element); } + pub fn isSelfClosing(element: *const Element) bool { + auto_disable(); + return lol_html_element_is_self_closing(element); + } + pub fn canHaveContent(element: *const Element) bool { + auto_disable(); + return lol_html_element_can_have_content(element); + } pub fn setUserData(element: *const Element, user_data: ?*anyopaque) void { auto_disable(); lol_html_element_user_data_set(element, user_data); |