[whatwg/dom] Support `getElementsByTagName(tag)` for DocumentFragment (Issue #1382)

yezhizhen created an issue (whatwg/dom#1382)

### What problem are you trying to solve?

https://github.com/w3c/webdriver/issues/1903
There is no reason we don't support `getElementsByTagName(tag)` for `DocumentFragment`, as it already supports `querySelector`, `getElementById` etc. Right now this causes trouble for WebDriver standard.

### What solutions exist today?

Use `querySelectorAll` to mimic the behaviour.

### How would you solve it?

_No response_

### Anything else?

_No response_

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1382
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1382@github.com>

Received on Thursday, 19 June 2025 10:55:32 UTC