fixed inner/outerHTML issues