html: be less conservative about element content