Skip to main content

html-quine.html

html (+js) quine using data:text/html, for the url bar of a browser.

gist link


data:text/html,<html><body><div></div><script>document.getElementsByTagName('div')[0].innerText = 'data:text/html,' + document.getElementsByTagName('html')[0].innerHTML</script></body></html>