Loading homepage
Traverse an HTML subtree and return a snapshot of descendant elements matching a tag name.
Input: getElementsByTagName(container, "BUTTON") Output: An array of all descendant button elements in document order.
Input: getElementsByTagName(container, "*") Output: All descendant elements, excluding container itself.
Implement the exported function in index.js or index.ts. Tests provide fixtures for the required behavior.