mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/DOM: Create NodeIterator in document's realm
This commit is contained in:
parent
80e8313880
commit
84f22cb6b3
Notes:
github-actions[bot]
2025-01-10 08:10:02 +00:00
Author: https://github.com/shannonbooth
Commit: 84f22cb6b3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3208
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 10 additions and 11 deletions
|
@ -3336,7 +3336,7 @@ WebIDL::ExceptionOr<Document::PrefixAndTagName> Document::validate_qualified_nam
|
|||
// https://dom.spec.whatwg.org/#dom-document-createnodeiterator
|
||||
GC::Ref<NodeIterator> Document::create_node_iterator(Node& root, unsigned what_to_show, GC::Ptr<NodeFilter> filter)
|
||||
{
|
||||
return NodeIterator::create(root, what_to_show, filter).release_value_but_fixme_should_propagate_errors();
|
||||
return NodeIterator::create(realm(), root, what_to_show, filter).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue