dont remove a depth if the element is inline and self closing