mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWeb: Add naive support for document.querySelectorAll()
This currently returns a JS::Array of elements matching a selector. The more correct behavior would be to return a static NodeList, but as we don't have NodeLists right now, that'll be a task for the future.
This commit is contained in:
parent
c56acba75e
commit
0f7bcd4111
11 changed files with 182 additions and 78 deletions
|
@ -43,6 +43,7 @@ private:
|
|||
virtual const char* class_name() const override { return "DocumentWrapper"; }
|
||||
|
||||
static JS::Value get_element_by_id(JS::Interpreter&);
|
||||
static JS::Value query_selector_all(JS::Interpreter&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue