forked from markedjs/marked
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request markedjs#976 from UziTech/v0.3.9
V0.3.9
- Loading branch information
Showing
15 changed files
with
157 additions
and
51 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,3 @@ | ||
<p><a href="mailto:<svg/onload="alert(1)"//@x"><svg/onload="alert(1)"//@x</a></p> | ||
|
||
<p><a href="mailto:bar"onclick="alert('XSS')"@foo">bar"onclick="alert('XSS')"@foo</a></p> |
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 @@ | ||
<<svg/onload="alert(1)"//@x> | ||
|
||
<bar"onclick="alert('XSS')"@foo> |
35 changes: 35 additions & 0 deletions
35
test/tests/relative_urls.baseUrl=http%3A%2F%2Fexample%2Ecom%2Fbase%2F.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,35 @@ | ||
<h1 id="absolutization-of-rfc-3986-uris">Absolutization of RFC 3986 URIs</h1> | ||
|
||
<h2 id="absolute-uri">Absolute URI</h2> | ||
|
||
<p><a href="http://example.com/"><img src="http://example.com/logo" alt="section 4.3"></a></p> | ||
|
||
<h2 id="network-path-reference">Network-path reference</h2> | ||
|
||
<p><a href="http://example.com/"><img src="http://example.com/logo" alt="section 4.2"></a></p> | ||
|
||
<h2 id="absolute-path">Absolute path</h2> | ||
|
||
<p><a href="http://example.com/path/to/content"><img src="http://example.com/path/to/img" alt="section 4.2"></a></p> | ||
|
||
<h2 id="relative-path">Relative path</h2> | ||
|
||
<p><a href="http://example.com/base/content"><img src="http://example.com/base/img" alt="section 4.2"></a></p> | ||
|
||
<h2 id="dot-relative-path">Dot-relative path</h2> | ||
|
||
<p><a href="http://example.com/base/./content"><img src="http://example.com/base/./img" alt="section 3.3"></a></p> | ||
|
||
<p><a href="http://example.com/base/../content"><img src="http://example.com/base/../img" alt="section 3.3"></a></p> | ||
|
||
<h2 id="same-document-query">Same-document query</h2> | ||
|
||
<p><a href="?"><img src="?type=image" alt="section 4.4"></a></p> | ||
|
||
<h2 id="same-document-fragment">Same-document fragment</h2> | ||
|
||
<p><a href="#"><img src="#img" alt="section 4.4"></a></p> | ||
|
||
<h2 id="empty">Empty</h2> | ||
|
||
<p><a href="">section 4.2</a></p> |
27 changes: 27 additions & 0 deletions
27
test/tests/relative_urls.baseUrl=http%3A%2F%2Fexample%2Ecom%2Fbase%2F.text
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,27 @@ | ||
# Absolutization of RFC 3986 URIs | ||
|
||
## Absolute URI | ||
[![section 4.3](http://example.com/logo)](http://example.com/) | ||
|
||
## Network-path reference | ||
[![section 4.2](//example.com/logo)](//example.com/) | ||
|
||
## Absolute path | ||
[![section 4.2](/path/to/img)](/path/to/content) | ||
|
||
## Relative path | ||
[![section 4.2](img)](content) | ||
|
||
## Dot-relative path | ||
[![section 3.3](./img)](./content) | ||
|
||
[![section 3.3](../img)](../content) | ||
|
||
## Same-document query | ||
[![section 4.4](?type=image)](?) | ||
|
||
## Same-document fragment | ||
[![section 4.4](#img)](#) | ||
|
||
## Empty | ||
[section 4.2]() |
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,2 @@ | ||
<p>lowerlower | ||
upperupper</p> |
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,2 @@ | ||
lower[click me](javascript:...)lower | ||
upper[click me](javascript:...)upper |