Replaces an opening tag and the corresponding closing tag with an equivalent self-closing tag.