hmm, this assumes that we are always dealing with fragments. What if we have a full HTML document. That gets wrapped here as well. It still seems to work, but feel ugly to me. I think we should check the parsed document whether it has a <body>, and only if not we create the shell and add the input - see https://github.com/hferentschik/hibernate-validator/commit/8349d8c9e2401171c93d62892a5a57b381a5b959