Parse HTML as document fragment.

This is to match the changes in Rails Dom Testing rails/rails-dom-testing#20.
Merge pull request #17107 from kaspth/parse-html-as-fragments

Parse HTML as document fragment.