[whatwg/dom] Missing arguments for “locate a namespace prefix” in `lookupPrefix` steps (Issue #1302)

### What is the issue with the DOM Standard?

In the `lookupPrefix` [operation steps](https://dom.spec.whatwg.org/#dom-node-lookupprefix), three “invocations” of the [“locate a namespace prefix”](https://dom.spec.whatwg.org/#locate-a-namespace-prefix) algorithm don’t pass it a `namespace` argument:

- “the result of **locating a namespace prefix** for its _document element_”
- “the result of **locating a namespace prefix** for its _element_”
- “the result of **locating a namespace prefix** for its _parent element_”

Unless there’s a calling convention that I’m unaware of that makes it implicit that the local `namespace` “variable” should be passed down, this seems like a mistake. Note that in the `Element` case, `namespace is already explicitly passed down:

- “the result of **locating a namespace prefix** for _it_ using _namespace_”

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

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

Received on Sunday, 11 August 2024 01:30:11 UTC