html: Handle unexpected-solidus-in-tag according to HTML5

This commit is contained in:
Nick Wellnhofer 2023-05-04 15:33:27 +02:00
parent 939b53ee12
commit f2272c231b

View File

@ -3851,6 +3851,12 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) {
(CUR != '>') &&
((CUR != '/') || (NXT(1) != '>')) &&
(PARSER_STOPPED(ctxt) == 0)) {
/* unexpected-solidus-in-tag */
if (CUR == '/') {
NEXT;
SKIP_BLANKS;
continue;
}
GROW;
attname = htmlParseAttribute(ctxt, &attvalue);
if (attname != NULL) {