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

**URL:** <https://community.postman.com/t/native-js-document-createelement-html-is-not-working-in-sandbox/2833>\
**Category:** Help Hub\
**Tags:** document, dom\
**Created:** [October 2, 2018, 7:07am UTC](https://community.postman.com/t/native-js-document-createelement-html-is-not-working-in-sandbox/2833 "2018-10-02T07:07:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttftt](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@ttftt](https://community.postman.com/u/ttftt)\
**Post date:** [October 2, 2018, 7:07am UTC](https://community.postman.com/t/native-js-document-createelement-html-is-not-working-in-sandbox/2833/1 "2018-10-02T07:07:40Z")

</div>

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](http://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?

---

<div class="post-metadata">

**Author:** ![singhsivcan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/singhsivcan/32/1595_2.png) [@singhsivcan](https://community.postman.com/u/singhsivcan)\
**Post date:** [November 3, 2018, 12:26pm UTC](https://community.postman.com/t/native-js-document-createelement-html-is-not-working-in-sandbox/2833/2 "2018-11-03T12:26:15Z")

</div>

@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](https://community.postman.com/t/getting-html-response-want-to-parse-certain-fields-to-next-request/2429/2)
