diff options
| author | 2023-08-19 04:59:23 +0200 | |
|---|---|---|
| committer | 2023-08-18 19:59:23 -0700 | |
| commit | c2ec47ff320fc52298d9488ebbc2d89a19a0ec8a (patch) | |
| tree | f19b054ad4358b667c6fe4dd728164424e222fa4 /src/deps | |
| parent | 26036a390b71e079e31694d2dcf64572e30db74f (diff) | |
| download | bun-c2ec47ff320fc52298d9488ebbc2d89a19a0ec8a.tar.gz bun-c2ec47ff320fc52298d9488ebbc2d89a19a0ec8a.tar.zst bun-c2ec47ff320fc52298d9488ebbc2d89a19a0ec8a.zip | |
feat: add self-closing & can-have-content (#4206)
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); |
