mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Add getElementsByTagNameNS and add support for * in non-NS
This also moves getElementsByTagName to ParentNode to remove the code duplication between Document and Element. This additionally fixes a bug where getElementsByTagName did not check if the element was a descendant, meaning it would also include the context element if the condition matched.
This commit is contained in:
committed by
Andreas Kling
parent
5c7dca3526
commit
d47e431d54
Notes:
sideshowbarker
2024-07-18 03:33:58 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/d47e431d54b Pull-request: https://github.com/SerenityOS/serenity/pull/10176
@@ -158,7 +158,6 @@ public:
|
||||
void schedule_forced_layout();
|
||||
|
||||
NonnullRefPtr<HTMLCollection> get_elements_by_name(String const&);
|
||||
NonnullRefPtr<HTMLCollection> get_elements_by_tag_name(FlyString const&);
|
||||
NonnullRefPtr<HTMLCollection> get_elements_by_class_name(FlyString const&);
|
||||
|
||||
NonnullRefPtr<HTMLCollection> applets();
|
||||
|
||||
Reference in New Issue
Block a user