![](https://secure.gravatar.com/avatar/dbca40bf4b7ee81725c7050372dad93b.jpg?s=120&d=mm&r=g)
9 May
2008
9 May
'08
2:03 a.m.
Hello, when trying to insert a node using node.insert_before, and if <current> is equal to <head> (to make <new> the new head), the following error is generated: Attempt to node.insert_before() a non-existing node The node I want to insert exists, as well as <head> and <current>. If I manually special-case the code, just like Heiko Oberdiek does in his luacolor package, everything works perfectly. Is this a bug? A feature? I'm using the svn trunk from last friday. Jonathan