Commit ff098d9e authored by Jan Köster's avatar Jan Köster
Browse files

test

parent b4e1e840
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;