1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:27:35 +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

@ -19,6 +19,7 @@ interface Document : Node {
HTMLCollection getElementsByClassName(DOMString className);
readonly attribute HTMLCollection applets;
readonly attribute HTMLCollection anchors;
Element createElement(DOMString tagName);
Element createElementNS(DOMString? namespace, DOMString qualifiedName);