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:
parent
43d16fa5b6
commit
b74bf31a53
3 changed files with 12 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue