Supporting 'document type doe not allow element here'