Fix Firefox <= 10 missing outerHTML

In Firefox <= 10 there is no outerHTML, as a workaround we wrap the element with a div and return the wrapped elements innerHTML.

It looks ugly to me and someone with more insight might find a better solution, but it works for me.