Using CSS without HTML
mathiasbynens.be
mathiasbynens.be
Of course, the Link: header hadn't even been proposed yet, and the whole "DOM scripting" movement plus tools like Firebug/Webkit inspector has turned obfuscation of web content into a pointless exercise. So, like the author says, this is just a fun parlor trick.
When I saw the title I expected to see something about using CSS for things other than styling HTML. It may be useful, for example, to use CSS to style native GUI applications or similar.
Similarly, full `Link` header support would also make it possible to have feed-autodiscovery on non-HTML pages (like images, audio, video, plain text files, etc).
One idea is injecting some temporary content in all pages of a site without changing the actual content. For example in the recent SOPA blackout, server owners could have injected a css file with a simple configuration of their webserver.
I'm not suggesting you would use the technique to build the main page content. Just the added extras.
Do the link elements add any semantic goodness to the document?
You could also use the web server to transparently add those headers to html output - rather than a scripting language such as php.
That’s absolutely correct. (To be fair, this is mentioned in the article under “Disclaimer”.)
Something more will confuse new developers into misusing it, and ultimately breaking more things that shouldn't have been even able to do.
Link: <javascript:alert(1)>; rel="next"
This won’t do anything until you hit the “next” button in the Opera UI (or hit the Space bar, which is a keyboard shortcut for said button).