Commit b613e501 authored by jan.koester's avatar jan.koester
Browse files

fixed mem crash

parent 6ff5d1e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2396,6 +2396,10 @@ libhtmlpp::HtmlElement *libhtmlpp::HtmlElement::getElementbyTag(const std::strin
    return nullptr;
}

libhtmlpp::Element* libhtmlpp::HtmlElement::firstChild() const {
    return _childElement.get();
}

void libhtmlpp::HtmlElement::setAttribute(const std::string &name, const std::string &value) {
    Attributes* cattr = nullptr;

+2 −0
Original line number Diff line number Diff line
@@ -138,6 +138,8 @@ namespace libhtmlpp {
        HtmlElement *getElementbyID(const std::string &id) const;
        HtmlElement *getElementbyTag(const std::string &tag) const;

        Element*     firstChild() const;

        int    getType() const;
        void   remove(Element* el);