Patch forthcoming.
Created attachment 156456 [details] the patch
Comment on attachment 156456 [details] the patch Maybe add a comment above the declaration of the Node warning future travelers that they should be careful not to use it after the append? Other than that, looks good.
Landed in http://trac.webkit.org/changeset/124655