1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +00:00

LibWeb: Throw SyntaxError on bogus querySelector{,All} input selector

This commit is contained in:
Andreas Kling 2021-09-11 22:54:26 +02:00
parent 935075c26e
commit 0398089275
2 changed files with 6 additions and 6 deletions

View file

@ -22,8 +22,8 @@ public:
RefPtr<Element> last_element_child();
u32 child_element_count() const;
RefPtr<Element> query_selector(const StringView&);
NonnullRefPtrVector<Element> query_selector_all(const StringView&);
ExceptionOr<RefPtr<Element>> query_selector(StringView);
ExceptionOr<NonnullRefPtrVector<Element>> query_selector_all(StringView);
protected:
ParentNode(Document& document, NodeType type)