As far As i understood you want to edit a certain piece of DOM to your satisfaction before you display it, like you Manipulate a DOM thats currently in Display.
I would rather suggest doing a workaround for this, which I employ several times for a similar purpose
- First Append the DIV / element and hide it immediately.
- There After you are free to edit it any way you like.
- Do any sort of editing / CSS application / DOM Manip and then unhide the element or remove it if you just wanted some data out of it.
- ta-da!
EDIT
To resolve the issue of possible blinking, you can do another thing.
- create an empty DIV and hide it (hiding an empty div won't perhaps induce blinking because it would happen very fast)
- Then append the DOM object you want to (while it is hidden)
- then exercise your mercy over it.
let me know if I understood your problem wrong.