Loading src/html.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -341,12 +341,10 @@ NEXTDOCEL: } if(!next){ HTMLException e; e[HTMLException::Critical] << "Html Dom Incorrect!"; throw e; return; } while(next!=end){ for(;;){ if(!next->terminator){ start->element->_nextElement=next->element; prev=start; Loading @@ -354,6 +352,8 @@ NEXTDOCEL: next=next->nextel; goto NEXTDOCEL; } if(next==end) break; next=next->nextel; }; Loading Loading @@ -667,6 +667,7 @@ int libhtmlpp::Element::getType() const{ } void libhtmlpp::HtmlElement::setTagname(const char* name){ _TagName.clear(); std::copy(name,name+strlen(name),std::insert_iterator<std::vector<char>>(_TagName,_TagName.begin()) ); } Loading Loading @@ -1172,10 +1173,10 @@ int libhtmlpp::CommentElement::getType() const{ return ElementType::CommentEl; } libhtmlpp::ScriptElement::ScriptElement() : HtmlElement(){ libhtmlpp::ScriptElement::ScriptElement() : HtmlElement("script"){ } libhtmlpp::ScriptElement::ScriptElement(const ScriptElement &scriptsrc) : HtmlElement(){ libhtmlpp::ScriptElement::ScriptElement(const ScriptElement &scriptsrc) : HtmlElement("script"){ _copy(this,&scriptsrc); } Loading Loading
src/html.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -341,12 +341,10 @@ NEXTDOCEL: } if(!next){ HTMLException e; e[HTMLException::Critical] << "Html Dom Incorrect!"; throw e; return; } while(next!=end){ for(;;){ if(!next->terminator){ start->element->_nextElement=next->element; prev=start; Loading @@ -354,6 +352,8 @@ NEXTDOCEL: next=next->nextel; goto NEXTDOCEL; } if(next==end) break; next=next->nextel; }; Loading Loading @@ -667,6 +667,7 @@ int libhtmlpp::Element::getType() const{ } void libhtmlpp::HtmlElement::setTagname(const char* name){ _TagName.clear(); std::copy(name,name+strlen(name),std::insert_iterator<std::vector<char>>(_TagName,_TagName.begin()) ); } Loading Loading @@ -1172,10 +1173,10 @@ int libhtmlpp::CommentElement::getType() const{ return ElementType::CommentEl; } libhtmlpp::ScriptElement::ScriptElement() : HtmlElement(){ libhtmlpp::ScriptElement::ScriptElement() : HtmlElement("script"){ } libhtmlpp::ScriptElement::ScriptElement(const ScriptElement &scriptsrc) : HtmlElement(){ libhtmlpp::ScriptElement::ScriptElement(const ScriptElement &scriptsrc) : HtmlElement("script"){ _copy(this,&scriptsrc); } Loading