summaryrefslogtreecommitdiff
path: root/src/lxml/html/tests
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-02-08 13:05:13 +0100
committerStefan Behnel <stefan_ml@behnel.de>2015-02-08 13:05:13 +0100
commitc1b8d30a32a26602b3c7e0322f5a3355e4b6bcf1 (patch)
tree2e70d5befc44176944ab4c12a9a98bbe0fb9a8b5 /src/lxml/html/tests
parentc1dfce0462b3bf3930938f5d08b8f0188803efcf (diff)
downloadpython-lxml-c1b8d30a32a26602b3c7e0322f5a3355e4b6bcf1.tar.gz
LP#1419354: fix meta-redirect URL parsing when preceded by whitespace
Diffstat (limited to 'src/lxml/html/tests')
-rw-r--r--src/lxml/html/tests/test_rewritelinks.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lxml/html/tests/test_rewritelinks.txt b/src/lxml/html/tests/test_rewritelinks.txt
index ffd59e1e..9bd60af5 100644
--- a/src/lxml/html/tests/test_rewritelinks.txt
+++ b/src/lxml/html/tests/test_rewritelinks.txt
@@ -144,6 +144,12 @@ An application of ``iterlinks()`` is ``make_links_absolute()``::
>>> print(make_links_absolute('''
... <html>
... <head>
+ ... <meta http-equiv="refresh" content=" broken ">
+ ... <meta http-equiv="refresh" content="0; url = ">
+ ... <meta http-equiv="refresh" content="0;url=/redirect">
+ ... <meta http-equiv="refresh" content="5; url='/quoted_url'">
+ ... <meta http-equiv="refresh" content="10;url='http://example.com/absolute'">
+ ... <meta http-equiv="refresh" content="15; url=http://example.com/">
... <link rel="stylesheet" href="style.css">
... <style type="text/css">
... body {
@@ -168,6 +174,12 @@ An application of ``iterlinks()`` is ``make_links_absolute()``::
... base_url="http://my.little.server/url/"))
<html>
<head>
+ <meta http-equiv="refresh" content=" http://my.little.server/url/broken ">
+ <meta http-equiv="refresh" content="0; url = ">
+ <meta http-equiv="refresh" content="0;url=http://my.little.server/redirect">
+ <meta http-equiv="refresh" content="5; url='http://my.little.server/quoted_url'">
+ <meta http-equiv="refresh" content="10;url='http://example.com/absolute'">
+ <meta http-equiv="refresh" content="15; url=http://example.com/">
<link rel="stylesheet" href="http://my.little.server/url/style.css">
<style type="text/css">
body {