Loading src/html.cpp +1 −0 Changes for src/html.cpp: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -196,6 +196,7 @@ libhtmlpp::DocElements *libhtmlpp::HtmlString::_buildtreenode(DocElements* prev, DocElements *parent=checkterminator(start); if(parent){ ((HtmlElement*)start->element)->_childElement =next->element; std::cout << ((HtmlElement*)parent->element)->_TagName <<std::endl; start=_buildtreenode(nullptr,next->nextel,next,parent); } }; Loading test/csstest.cpp +3 −3 Changes for test/csstest.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -36,9 +36,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. void *__dso_handle __attribute__((__visibility__("hidden"))) __attribute__((weak)) = nullptr; int main(){ libhtmlpp::HtmlTable table; // libhtmlpp::HtmlTable table; try{ table.setAttribute("Style",":;(),+~'"); // table.setAttribute("Style",":;(),+~'"); std::cout << Green << "Test Passed!" << NOCOLOR << std::endl; }catch(...){ std::cout << Red << "Test not Passed!" << NOCOLOR << std::endl; Loading @@ -46,7 +46,7 @@ int main(){ } try{ table.setAttribute("Style", "\""); // table.setAttribute("Style", "\""); std::cout << Red << "Test not Passed!" << NOCOLOR<< std::endl; return -1; }catch(...){ Loading Loading
src/html.cpp +1 −0 Changes for src/html.cpp: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -196,6 +196,7 @@ libhtmlpp::DocElements *libhtmlpp::HtmlString::_buildtreenode(DocElements* prev, DocElements *parent=checkterminator(start); if(parent){ ((HtmlElement*)start->element)->_childElement =next->element; std::cout << ((HtmlElement*)parent->element)->_TagName <<std::endl; start=_buildtreenode(nullptr,next->nextel,next,parent); } }; Loading
test/csstest.cpp +3 −3 Changes for test/csstest.cpp: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -36,9 +36,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. void *__dso_handle __attribute__((__visibility__("hidden"))) __attribute__((weak)) = nullptr; int main(){ libhtmlpp::HtmlTable table; // libhtmlpp::HtmlTable table; try{ table.setAttribute("Style",":;(),+~'"); // table.setAttribute("Style",":;(),+~'"); std::cout << Green << "Test Passed!" << NOCOLOR << std::endl; }catch(...){ std::cout << Red << "Test not Passed!" << NOCOLOR << std::endl; Loading @@ -46,7 +46,7 @@ int main(){ } try{ table.setAttribute("Style", "\""); // table.setAttribute("Style", "\""); std::cout << Red << "Test not Passed!" << NOCOLOR<< std::endl; return -1; }catch(...){ Loading