[whatwg/dom] concept-node-equals definition is not correct (Issue #1443)

abacabadabacaba created an issue (whatwg/dom#1443)

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

In https://dom.spec.whatwg.org/#concept-node-equals, there is the following line:

> If A is an [element](https://dom.spec.whatwg.org/#concept-element), each [attribute](https://dom.spec.whatwg.org/#concept-attribute) in its [attribute list](https://dom.spec.whatwg.org/#concept-element-attribute) has an [attribute](https://dom.spec.whatwg.org/#concept-attribute) that [equals](https://dom.spec.whatwg.org/#concept-node-equals) an [attribute](https://dom.spec.whatwg.org/#concept-attribute) in B’s [attribute list](https://dom.spec.whatwg.org/#concept-element-attribute).

Not only is the formulation a bit awkward ("each attribute has an attribute" – what does it mean?), it only asserts that the set of A's attributes is a subset of B's attributes. It also needs to state that for each B's attribute, there is an equal A's attribute, or that there is a one-to-one correspondence between the attributes.

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

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

Received on Tuesday, 30 December 2025 16:51:54 UTC