mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +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: https://github.com/LadybirdBrowser/ladybird/commit/7549f6842f3 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;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ Harness status: OK
|
|||
|
||||
Found 103 tests
|
||||
|
||||
95 Pass
|
||||
8 Fail
|
||||
97 Pass
|
||||
6 Fail
|
||||
Pass html5lib_tests19.html 6135e0cbdbb22a97e8a13c2442c3e9a9e0a53298
|
||||
Pass html5lib_tests19.html 6b46dba2f4d7d1a08359ab21fe5e011463dd8746
|
||||
Pass html5lib_tests19.html bd558a6d89fae63fed9c0801e6fd8e8737bc8dc1
|
||||
|
@ -52,8 +52,8 @@ Pass html5lib_tests19.html 2fb0cdb3a9f69ca6c3d564e01f89d7173cd51295
|
|||
Pass html5lib_tests19.html 138623cd07ccff1ce13bb1aa5dbaaadc962c414f
|
||||
Pass html5lib_tests19.html 52e4a8422d6ef591f33f8686842d974dbaa33302
|
||||
Pass html5lib_tests19.html 5ba1d0e97f121810025c1d6447a426c669661637
|
||||
Fail html5lib_tests19.html 709ec07924db4c9fd66d48eac08575dfdef01d8f
|
||||
Fail html5lib_tests19.html f72edb80bc3be091e4b448cd1de8fe851d623e05
|
||||
Pass html5lib_tests19.html 709ec07924db4c9fd66d48eac08575dfdef01d8f
|
||||
Pass html5lib_tests19.html f72edb80bc3be091e4b448cd1de8fe851d623e05
|
||||
Pass html5lib_tests19.html cb7de0dc7e17c1454ceaa7eb49cb9f9476a1f510
|
||||
Pass html5lib_tests19.html 511bf4bae15c8119042e5e80b5358b70e7da26c1
|
||||
Pass html5lib_tests19.html c51ee24ef9d92206318cc5bbba784630cd10e531
|
||||
|
|
Loading…
Add table
Reference in a new issue