Skip to content

Instantly share code, notes, and snippets.

@gwpantazes
Last active November 5, 2022 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwpantazes/be6658429e6399dc7daa39a251db44a6 to your computer and use it in GitHub Desktop.
Save gwpantazes/be6658429e6399dc7daa39a251db44a6 to your computer and use it in GitHub Desktop.
Smoke test to modify an HTML document with javascript
let newelement = document.createElement('h1')
newelement.textContent = 'MODIFIED'
document.getElementsByTagName('h1')[0].append(newelement)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment