Skip to content

Instantly share code, notes, and snippets.

@dantman
Created June 3, 2013 03:25
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 dantman/5695980 to your computer and use it in GitHub Desktop.
Save dantman/5695980 to your computer and use it in GitHub Desktop.
Testing to ensure that an RDFa rel=":stylesheet" will NEVER be treated as rel="stylesheet"
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>rel=":stylesheet" safety test</title>
<link rel="stylesheet" href="safe.css">
<link rel=":stylesheet" href="unsafe.css">
</head>
<body>
<p>Background color indicates safety within this browser; Blue = Safe, only rel="stylesheet" is loaded. Red = Unsafe, rel=":stylesheet" was loaded as a stylesheet.</p>
</body>
</html>
body { background: blue; color: #fff; }
body { background: red !important; color: #fff !important; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment