Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Utils.normalize_uri and use it in WebsiteAgent
This fixes #938, and the specs are from #958. (Thanks @irfancharania!)
- Loading branch information
Showing
4 changed files
with
96 additions
and
3 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
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 @@ | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>test</title> | ||
</head> | ||
<body> | ||
<ul> | ||
<li><a href="http://google.com">google</a></li> | ||
<li><a href="https://www.google.ca/search?q=some query">broken</a></li> | ||
<li><a href="https://www.google.ca/search?q=some%20query">escaped</a></li> | ||
<li><a href="http://ko.wikipedia.org/wiki/위키백과:대문">unicode url</a></li> | ||
<li><a href="https://www.google.ca/search?q=위키백과:대문">unicode param</a></li> | ||
<li><a href="http://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8">percent encoded url</a></li> | ||
<li><a href="https://www.google.ca/search?q=%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8">percent encoded param</a></li> | ||
</ul> | ||
</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