From: Aleksander Ɓukasz Date: Thu, 13 Mar 2014 09:39:36 +0000 (+0100) Subject: smartxml: removing special implementation for changing tag name X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/f4b30e13f370f50a926971df2d23ca423a0c88d8?hp=f4b30e13f370f50a926971df2d23ca423a0c88d8 smartxml: removing special implementation for changing tag name NodeElement.setTag stops being a magic method that tries to simulate tagName as being a mutable property. It's now just a shortcut for replaceWith combined with copying replaced element contents, attributes and custom data. This change: - allows for removal of a separate nodeTagChange event, - simplifies implementation, - makes api more in line with DOM specification, - invalidates references to the old node explicitly by returning reference to a newly created node. ---