mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
LibWeb: Throw pre insertion validity errors from the correct global
This commit is contained in:
parent
c7ad6cd508
commit
89fb783b42
Notes:
github-actions[bot]
2025-07-25 07:09:31 +00:00
Author: https://github.com/tcl3
Commit: 89fb783b42
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5597
Reviewed-by: https://github.com/gmta ✅
7 changed files with 2201 additions and 13 deletions
|
@ -237,7 +237,7 @@ WebIDL::ExceptionOr<void> ParentNode::replace_children(Vector<Variant<GC::Root<N
|
|||
auto node = TRY(convert_nodes_to_single_node(nodes, document()));
|
||||
|
||||
// 2. Ensure pre-insertion validity of node into this before null.
|
||||
TRY(ensure_pre_insertion_validity(node, nullptr));
|
||||
TRY(ensure_pre_insertion_validity(realm(), node, nullptr));
|
||||
|
||||
// 3. Replace all with node within this.
|
||||
replace_all(*node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue