harmonize elements and doctypes via wrapper