Created
June 3, 2013 03:25
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { background: blue; color: #fff; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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