Support 'end tag X seen but there were open elements'