1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:57:34 +00:00

LibWeb: Implement document.anchors

This returns an HTMLCollection of all <a> elements in the document that
have a "name" attribute.
This commit is contained in:
Andreas Kling 2021-04-22 22:14:55 +02:00
parent 43d16fa5b6
commit b74bf31a53
3 changed files with 12 additions and 0 deletions

View file

@ -141,6 +141,7 @@ public:
NonnullRefPtr<HTMLCollection> get_elements_by_class_name(FlyString const&);
NonnullRefPtr<HTMLCollection> applets();
NonnullRefPtr<HTMLCollection> anchors();
const String& source() const { return m_source; }
void set_source(const String& source) { m_source = source; }