Moved serializing of DOMDocumentFragment to walking since we will only ever encounter this class once. It's a container like DOMDocument.
Added a helper method of loadHTMLFragment to get a DOMDocumentFragment.