JSFiddle - React, Tailwind, and code Playground

JavaScript

var docFrag = document.createDocumentFragment()
    
$(docFrag).load('/ #show-result', function() {
    console.log(docFrag)
    
    // process docFrag here, just the same way you would process `document` with XPath.
})