diff --git a/htmlhelper.cpp b/htmlhelper.cpp index 7ac2123..be58afd 100644 --- a/htmlhelper.cpp +++ b/htmlhelper.cpp @@ -301,7 +301,7 @@ static inline std::vector emojify(lxb_dom_document_t* document, res.push_back(lxb_dom_interface_node(lxb_dom_document_create_text_node(document, reinterpret_cast(buf.data()), buf.size()))); buf.clear(); - lxb_dom_element_t* img = lxb_dom_element_create(document, reinterpret_cast("IMG"), 3, nullptr, 0, nullptr, 0, nullptr, 0, false); + lxb_dom_element_t* img = lxb_dom_document_create_element(document, reinterpret_cast("IMG"), 3, nullptr); lxb_dom_element_set_attribute(img, reinterpret_cast("class"), 5, reinterpret_cast("custom_emoji"), 12); lxb_dom_element_set_attribute(img, reinterpret_cast("alt"), 3, reinterpret_cast(group_0.data()), group_0.size()); lxb_dom_element_set_attribute(img, reinterpret_cast("title"), 5, reinterpret_cast(group_0.data()), group_0.size());