Skip to content

Commit 9727445

Browse files
Remove outdated comments
The first comment is incorrect. The fragment case was changed to match the nonfragment case in whatwg/html#6399. This introduced a bug that was noted by the second comment indicating that the parser diverged from the standard to fix the bug. The standard was subsequently fixed in whatwg/html#6455, obviating the comment.
1 parent 657e31f commit 9727445

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

gumbo-parser/src/parser.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4423,11 +4423,6 @@ static void handle_in_foreign_content(GumboParser* parser, GumboToken* token) {
44234423
/* Parse error */
44244424
parser_add_parse_error(parser, token);
44254425

4426-
/*
4427-
* Fragment case: If the parser was originally created for the HTML
4428-
* fragment parsing algorithm, then act as described in the "any other
4429-
* start tag" entry below.
4430-
*/
44314426
while (
44324427
!(
44334428
is_mathml_integration_point(get_current_node(parser))
@@ -4437,12 +4432,6 @@ static void handle_in_foreign_content(GumboParser* parser, GumboToken* token) {
44374432
) {
44384433
pop_current_node(parser);
44394434
}
4440-
// XXX: The spec currently says to handle this using the in body insertion
4441-
// mode rules. That seems wrong. See
4442-
// <https://github.com/whatwg/html/issues/6808>. Instead, use the current
4443-
// insertion mode which seems like it works.
4444-
//
4445-
// handle_in_body(parser, token);
44464435
handle_html_content(parser, token);
44474436
return;
44484437
}

0 commit comments

Comments
 (0)