Skip to content

Commit

Permalink
update document prod tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 20, 2021
1 parent 811a2af commit e428425
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions tests/document-prod/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,50 @@ <h1 class="title">Document Prod</h1>
></script>
</li>

<li>
<strong>head.parentNode/Element</strong>
<code id="testHeadParentNode"></code>
<script type="text/partytown">
(function () {
const elm = document.getElementById('testHeadParentNode');
elm.textContent = document.head.parentNode.nodeName + ' ' + document.head.parentElement.nodeName;
})();
</script>
</li>

<li>
<strong>body.parentNode/Element</strong>
<code id="testBodyParentNode"></code>
<script type="text/partytown">
(function () {
const elm = document.getElementById('testBodyParentNode');
elm.textContent = document.body.parentNode.nodeName + ' ' + document.body.parentElement.nodeName;
})();
</script>
</li>

<li>
<strong>documentElement.parentNode/Element</strong>
<code id="testDocumentElementParentNode"></code>
<script type="text/partytown">
(function () {
const elm = document.getElementById('testDocumentElementParentNode');
elm.textContent = document.documentElement.parentNode.nodeName + ' ' + String(document.documentElement.parentElement);
})();
</script>
</li>

<li>
<strong>document.parentNode/Element</strong>
<code id="testDocumentParentNode"></code>
<script type="text/partytown">
(function () {
const elm = document.getElementById('testDocumentParentNode');
elm.textContent = String(document.parentNode) + ' ' + String(document.parentElement);
})();
</script>
</li>

<script type="text/partytown">
(function () {
document.body.classList.add('completed');
Expand Down

1 comment on commit e428425

@vercel
Copy link

@vercel vercel bot commented on e428425 Sep 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.