Commit 4027f72d authored by jan.koester's avatar jan.koester
Browse files

test

parent c2000af5
Loading
Loading
Loading
Loading
+52 −36
Original line number Diff line number Diff line
@@ -2336,7 +2336,12 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                          curattr->_Key.end(),
                          std::back_inserter(output)
                );
                if(!curattr->_Value.empty()){
                // Always emit ="value", even when value is empty -- matches
                // the WHATWG HTML fragment serialization algorithm (browsers'
                // outerHTML never drops the ="" for e.g. alt="" or a boolean
                // attribute like disabled) and keeps round-tripping stable:
                // an attribute with an explicit empty value stays
                // distinguishable in the output from one with none.
                output.append("=\"");
                std::copy(
                    curattr->_Value.begin(),
@@ -2345,7 +2350,6 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                );
                output.append("\"");
            }
            }

            output.append(">");

@@ -2423,7 +2427,12 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                          curattr->_Key.end(),
                          std::back_inserter(output)
                );
                if(!curattr->_Value.empty()){
                // Always emit ="value", even when value is empty -- matches
                // the WHATWG HTML fragment serialization algorithm (browsers'
                // outerHTML never drops the ="" for e.g. alt="" or a boolean
                // attribute like disabled) and keeps round-tripping stable:
                // an attribute with an explicit empty value stays
                // distinguishable in the output from one with none.
                output.append("=\"");
                std::copy(
                    curattr->_Value.begin(),
@@ -2432,7 +2441,6 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                );
                output.append("\"");
            }
            }

            output.append(">");
            if(formated){
@@ -2473,7 +2481,12 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                          curattr->_Key.end(),
                          std::back_inserter(output)
                );
                if(!curattr->_Value.empty()){
                // Always emit ="value", even when value is empty -- matches
                // the WHATWG HTML fragment serialization algorithm (browsers'
                // outerHTML never drops the ="" for e.g. alt="" or a boolean
                // attribute like disabled) and keeps round-tripping stable:
                // an attribute with an explicit empty value stays
                // distinguishable in the output from one with none.
                output.append("=\"");
                std::copy(
                    curattr->_Value.begin(),
@@ -2482,7 +2495,6 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                );
                output.append("\"");
            }
            }
            output.append(">");

            if(formated){
@@ -2523,7 +2535,12 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                          curattr->_Key.end(),
                          std::back_inserter(output)
                );
                if(!curattr->_Value.empty()){
                // Always emit ="value", even when value is empty -- matches
                // the WHATWG HTML fragment serialization algorithm (browsers'
                // outerHTML never drops the ="" for e.g. alt="" or a boolean
                // attribute like disabled) and keeps round-tripping stable:
                // an attribute with an explicit empty value stays
                // distinguishable in the output from one with none.
                output.append("=\"");
                std::copy(
                    curattr->_Value.begin(),
@@ -2532,7 +2549,6 @@ void libhtmlpp::print(const Element &element, HtmlString &output,bool formated)
                );
                output.append("\"");
            }
            }
            output.append(">");
            std::copy(
                static_cast<const TextArea*>(el)->_Text.begin(),