mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Rename HTMLScriptElement "non-blocking" to "force async"
This has been renamed in the spec, so let's do it here too.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 04:14:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7d45927d41 Pull-request: https://github.com/SerenityOS/serenity/pull/16125 Reviewed-by: https://github.com/ADKaster ✅
@@ -806,7 +806,7 @@ void HTMLParser::handle_in_head(HTMLToken& token)
|
||||
auto element = create_element_for(token, Namespace::HTML, *adjusted_insertion_location.parent);
|
||||
auto& script_element = verify_cast<HTMLScriptElement>(*element);
|
||||
script_element.set_parser_document(Badge<HTMLParser> {}, document());
|
||||
script_element.set_non_blocking(Badge<HTMLParser> {}, false);
|
||||
script_element.set_force_async(Badge<HTMLParser> {}, false);
|
||||
script_element.set_source_line_number({}, token.start_position().line + 1); // FIXME: This +1 is incorrect for script tags whose script does not start on a new line
|
||||
|
||||
if (m_parsing_fragment) {
|
||||
|
||||
Reference in New Issue
Block a user