Commit 9c405abc authored by jan.koester's avatar jan.koester
Browse files

one bug left :-D

parent 6ec37b1b
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -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;
@@ -354,6 +352,8 @@ NEXTDOCEL:
            next=next->nextel;
            goto NEXTDOCEL;
        }
        if(next==end)
            break;
        next=next->nextel;
    };

@@ -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()) );
}

@@ -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);
}