1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

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 != '>') &&
((CUR != '/') || (NXT(1) != '>')) && ((CUR != '/') || (NXT(1) != '>')) &&
(PARSER_STOPPED(ctxt) == 0)) { (PARSER_STOPPED(ctxt) == 0)) {
/* unexpected-solidus-in-tag */
if (CUR == '/') {
NEXT;
SKIP_BLANKS;
continue;
}
GROW; GROW;
attname = htmlParseAttribute(ctxt, &attvalue); attname = htmlParseAttribute(ctxt, &attvalue);
if (attname != NULL) { if (attname != NULL) {