Closed kije closed 9 years ago
dispose
should not remove the ID attribute.
http://jsfiddle.net/4cm2h8rb/ shows that this indeed does not happen.
In which situation is the attribute removed for you?
@arian probably el.clone().dispose()
- though that's kind of pointless given that clone does not add a parentNode
anyway.
https://github.com/mootools/mootools-core/blob/master/Source/Element/Element.js#L959
suggest close.
@kije please comment back if you can make a jsFiddle reproducing the problem you pointed out.
Element.dispose() removes a element from DOM and returns it. However, the id attribute of the returned Element(s) is removed. There should be at least a possibility (parameter) to make dispose() not remove the id attribute.