- From: Philip Jägenstedt <notifications@github.com>
- Date: Mon, 23 Nov 2015 05:38:54 -0800
- To: whatwg/dom <dom@noreply.github.com>
Received on Monday, 23 November 2015 13:39:31 UTC
https://dom.spec.whatwg.org/#concept-element-attributes-set Per spec, this will remove *oldAttr* and append the new *attr*. This matches Gecko, but not Blink or Edge in this test: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3758 Here is the same test using `setAttribute`, where the attribute order does not change: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3759 This could be fixed by having the concept of replacing attributes, in addition to append/remove. CC @bzbarsky @Ms2ger --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/116
Received on Monday, 23 November 2015 13:39:31 UTC