mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
html: Handle unexpected-solidus-in-tag according to HTML5
This commit is contained in:
parent
939b53ee12
commit
f2272c231b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user