mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibWeb: Ensure "frameset ok" flag is disabled after parsing pre
tag
2 new passes in WPT/html/syntax/parsing/ :^)
This commit is contained in:
parent
2e59dbd10f
commit
7549f6842f
Notes:
github-actions[bot]
2025-02-20 13:33:37 +00:00
Author: https://github.com/awesomekling
Commit: 7549f6842f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3626
Reviewed-by: https://github.com/shannonbooth
2 changed files with 9 additions and 6 deletions
|
@ -2011,6 +2011,11 @@ void HTMLParser::handle_in_body(HTMLToken& token)
|
|||
// Insert an HTML element for the token.
|
||||
(void)insert_html_element(token);
|
||||
|
||||
// AD-HOC: We move this step before handling LINE FEED below, to ensure the flag is updated before
|
||||
// we process the next token. This is necessary due to how we implement token reprocessing.
|
||||
// Set the frameset-ok flag to "not ok".
|
||||
m_frameset_ok = false;
|
||||
|
||||
// If the next token is a U+000A LINE FEED (LF) character token,
|
||||
// then ignore that token and move on to the next one.
|
||||
// (Newlines at the start of pre blocks are ignored as an authoring convenience.)
|
||||
|
@ -2021,8 +2026,6 @@ void HTMLParser::handle_in_body(HTMLToken& token)
|
|||
process_using_the_rules_for(m_insertion_mode, next_token.value());
|
||||
}
|
||||
|
||||
// Set the frameset-ok flag to "not ok".
|
||||
m_frameset_ok = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue