- From: Evgeny Kapun <notifications@github.com>
- Date: Tue, 30 Dec 2025 08:51:50 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 30 December 2025 16:51:54 UTC
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