tomhuda/metamorph.js — Issue #12: `after` inserts in reverse order on IE
Author: wagenet
Created: 2012-02-10 19:57:09+00:00
State: open

https://github.com/tomhuda/metamorph.js/blob/master/lib/metamorph.js#L350

`end.nextSibling` should be constant. However, since we don't assign it to a variable it changes after we insert each node. This causes reverse insertion. Fix is to set `var before = end.nextSibling` outside of the loop and use that.