Native JS document.createElement("html") is not working in Sandbox

Postman no longer support jQuery and it is said to be a pros. But how to find specific html tag by unique property with queryselector? I have tried this code:
request:
GET www.w3schools.com/html/html_lists.asp

test:
var responseHTML = document.createElement(“html”);
responseHTML.innerHTML = responseBody;

inputs = responseHTML.querySelector(".w3col > ol > li:nth-child(1)");

tests["First item in list is named 'First item'"] = inputs.innerHTML === "First item";

but it gives an error “ReferenceError: document is not defined”. Where is declared support of native JS in sandbox?

@ttftt Just saw this post and wanted to still answer it.
You and the fellow future readers of this question might want to go through @deepak.pathania’s answer here - Getting HTML response - want to parse certain fields to next request