-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent security issues from preload media option (#154)
* Prevent security concern from preload media option
- Loading branch information
1 parent
1947611
commit 6a100b7
Showing
10 changed files
with
25,959 additions
and
2,543 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@media screen and (min-width: 480px) { | ||
body { | ||
background-color: lightgreen; | ||
} | ||
} | ||
|
||
#main { | ||
border: 1px solid black; | ||
} | ||
|
||
ul li { | ||
padding: 5px; | ||
} | ||
|
||
@media print and alert('hellp') { | ||
padding: 5px; | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<html> | ||
<link> | ||
<title>Testing</title> | ||
<link rel="stylesheet" href="styles.css" media="alert(1)"></link> | ||
<link rel="stylesheet" href="styles2.css" media="screen and (min-width: 480px)"></link> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<header> | ||
<div class="banner">Lorem ipsum dolor sit amet</div> | ||
</header> | ||
</div> | ||
<div class="" data-critters-container> | ||
<h1>Hello World!</h1> | ||
<p>This is a paragraph</p> | ||
<input class="input-field" /> | ||
<div class="contents"></div> | ||
<div class="selected active"></div> | ||
</div> | ||
<footer class=""></footer> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
height: 100%; | ||
} |
Oops, something went wrong.