mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +00:00
LibWeb/HTML: Add cloning steps for HTMLScriptElement
This commit is contained in:
parent
2e96ba11e4
commit
3dbaae5cfc
Notes:
github-actions[bot]
2025-01-05 21:12:49 +00:00
Author: https://github.com/AtkinsSJ
Commit: 3dbaae5cfc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3150
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 14 additions and 0 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue