- From: Trevor Rowbotham <notifications@github.com>
- Date: Sun, 15 Jul 2018 20:02:25 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 16 July 2018 03:02:50 UTC
https://dom.spec.whatwg.org/commit-snapshots/32efc48fef28c34ed914b60cfb3c29807e617365/#interface-domtokenlist > When a DOMTokenList object is created, then: > > 1. Let element be associated element\. > > 2. Let localName be associated attribute’s local name\. > > 3. Let value be the result of getting an attribute given null, localName, and element\. > > 4. Run the attribute change steps for element, localName, value, value, and null\. In step 3, "getting an attribute" links to the [get an attribute by namespace and local name](https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace) algorithm, which returns an `Attr` node or `null`. This is a problem because in step 4, value is passed to the "attribute change steps" as the oldValue and value arguments, which only accept a `string` or `null`. So, step 3 should either link to the [get an attribute value](https://dom.spec.whatwg.org/#concept-element-attributes-get-value) algorithm or operate on the returned `Attr` node's value. Not really sure which is more appropriate here. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/666
Received on Monday, 16 July 2018 03:02:50 UTC