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.