Add `<style>` and `</style>` #1

wants to merge 1 commit into

2 participants


Use generated content to add <style> and </style>, to make it more like a proper quine.

Btw, in case anyone needs an explanation of how this works, I wrote about it in 2010: Not sure if README material. </shameless-self-promotion>

@mathiasbynens mathiasbynens Add `<style>` and `</style>`
Use generated content to add `<style>` and `</style>`, to make it more like a proper quine.
@mathiasbynens mathiasbynens commented on the diff Jan 24, 2013
@@ -14,4 +14,10 @@
style:hover {
outline: 0;
+ style::before{
+ content: '<style>';
+ }
+ style::after{
+ content: '<\/style>';
mathiasbynens Jan 24, 2013

Yep, this must be escaped. See

SlexAxton Jan 24, 2013 Owner

I just took out the closing tag. It auto-closes, so it's a real quine.


Got this in before I saw your PR

@SlexAxton SlexAxton closed this Jan 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment