outerHTML fix for firefox