the new version uses html-spec compliant fragment parsing instead of just wrapping the fragment in the