diff options
author | Andreas Kling <kling@serenityos.org> | 2022-11-20 14:22:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-21 10:08:50 +0100 |
commit | 7d45927d412d26637dd17e628ba9c1052e103f43 (patch) | |
tree | 22a1ad78da1557a23c59a9646670409ebdc7a9a9 /Userland/Libraries/LibWeb/XML | |
parent | 7b9138be55117be1921f9ba2676e50c34b0e511f (diff) | |
download | serenity-7d45927d412d26637dd17e628ba9c1052e103f43.zip |
LibWeb: Rename HTMLScriptElement "non-blocking" to "force async"
This has been renamed in the spec, so let's do it here too.
Diffstat (limited to 'Userland/Libraries/LibWeb/XML')
-rw-r--r-- | Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp index dd808688d5..1c3f70f9ae 100644 --- a/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp +++ b/Userland/Libraries/LibWeb/XML/XMLDocumentBuilder.cpp @@ -66,12 +66,12 @@ void XMLDocumentBuilder::element_start(const XML::Name& name, HashMap<XML::Name, auto node = DOM::create_element(m_document, name, {}); // When an XML parser with XML scripting support enabled creates a script element, - // it must have its parser document set and its "non-blocking" flag must be unset. + // it must have its parser document set and its "force async" flag must be unset. // FIXME: If the parser was created as part of the XML fragment parsing algorithm, then the element must be marked as "already started" also. if (m_scripting_support == XMLScriptingSupport::Enabled && HTML::TagNames::script == name) { auto& script_element = static_cast<HTML::HTMLScriptElement&>(*node); script_element.set_parser_document(Badge<XMLDocumentBuilder> {}, m_document); - script_element.set_non_blocking(Badge<XMLDocumentBuilder> {}, false); + script_element.set_force_async(Badge<XMLDocumentBuilder> {}, false); } if (HTML::TagNames::template_ == m_current_node->node_name()) { // When an XML parser would append a node to a template element, it must instead append it to the template element's template contents (a DocumentFragment node). |