Loading src/html.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -2114,7 +2114,11 @@ void libhtmlpp::HtmlPage::_CheckHeader(const HtmlString &page){ } while (i < 8) { if (page[i+1] != type[i]) { // Case-insensitive, matching the "HTML"/"PUBLIC" checks just below // and the HTML5 spec itself: "<!doctype html>" is exactly as valid // as "<!DOCTYPE HTML>", and is in fact the more common convention // in the wild (most build tools/frameworks emit it lowercase). if (tolower(page[i+1]) != tolower(type[i])) { HTMLException excp; excp[HTMLException::Critical] << "No Doctype found arborting"; throw excp; Loading Loading
src/html.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -2114,7 +2114,11 @@ void libhtmlpp::HtmlPage::_CheckHeader(const HtmlString &page){ } while (i < 8) { if (page[i+1] != type[i]) { // Case-insensitive, matching the "HTML"/"PUBLIC" checks just below // and the HTML5 spec itself: "<!doctype html>" is exactly as valid // as "<!DOCTYPE HTML>", and is in fact the more common convention // in the wild (most build tools/frameworks emit it lowercase). if (tolower(page[i+1]) != tolower(type[i])) { HTMLException excp; excp[HTMLException::Critical] << "No Doctype found arborting"; throw excp; Loading