mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb/HTML: Add cloning steps for HTMLScriptElement
This commit is contained in:
committed by
Tim Ledbetter
parent
2e96ba11e4
commit
3dbaae5cfc
Notes:
github-actions[bot]
2025-01-05 21:12:49 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/3dbaae5cfc5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3150 Reviewed-by: https://github.com/tcl3 ✅
@@ -650,4 +650,16 @@ void HTMLScriptElement::set_async(bool async)
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#script-processing-model:concept-node-clone-ext
|
||||
WebIDL::ExceptionOr<void> HTMLScriptElement::cloned(Node& copy, bool subtree)
|
||||
{
|
||||
TRY(Base::cloned(copy, subtree));
|
||||
|
||||
// The cloning steps for script elements given node, copy, and subtree are to set copy's already started to node's already started.
|
||||
auto& script_copy = verify_cast<HTMLScriptElement>(copy);
|
||||
script_copy.m_already_started = m_already_started;
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user