More sensible normalisation for 'document does not allow element X here; missing one of ...