I've seen a lot of work-arounds for doing outerHTML() in jQuery. outerHTML() is not part of the spec and therefor is not supported across all browsers. Browsers like Firefox do not support outerHTML. Here is a cross-browser solution that you can use in a jQuery-style kind-of way.
The updated gist can be found here.
* Full example h... Read more »
I've had my head buried in 7shifts lately, it's been fun and exhausting to say the least. One of the obstacles we had to overcome was asset loading. We kicked this problem in the ass, read my full write-up over at the 7shifts developer blog. Read more »