Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

2 participants

@mathiasbynens

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: http://mathiasbynens.be/notes/css-hidden-elements 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.
ede5288
@mathiasbynens mathiasbynens commented on the diff
index.html
@@ -14,4 +14,10 @@
style:hover {
outline: 0;
}
+ style::before{
+ content: '<style>';
+ }
+ style::after{
+ content: '<\/style>';

Yep, this must be escaped. See http://mths.be/etago.

@SlexAxton Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@SlexAxton
Owner

Got this in before I saw your PR

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

    Add `<style>` and `</style>`

    mathiasbynens authored
    Use generated content to add `<style>` and `</style>`, to make it more like a proper quine.
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 index.html
View
6 index.html
@@ -14,4 +14,10 @@
style:hover {
outline: 0;
}
+ style::before{
+ content: '<style>';
+ }
+ style::after{
+ content: '<\/style>';

Yep, this must be escaped. See http://mths.be/etago.

@SlexAxton Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ }
</style>
Something went wrong with that request. Please try again.