summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-13 22:41:11 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-13 22:41:11 +0100
commit50f0cfcc1a96a418b5da9539f80499758ac207c7 (patch)
treeaa89993c1b0329866fb911793a14283dc17f3ee8 /tests/Tests/Readers
parent3de6b97b9fa043c0682b230213393b2db5867a30 (diff)
HTML reader: only treat "a" element as link if it has href.
Otherwise treat as span. Closes #3226.
Diffstat (limited to 'tests/Tests/Readers')
-rw-r--r--tests/Tests/Readers/HTML.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Tests/Readers/HTML.hs b/tests/Tests/Readers/HTML.hs
index 09041bfd1..1426a8bea 100644
--- a/tests/Tests/Readers/HTML.hs
+++ b/tests/Tests/Readers/HTML.hs
@@ -26,4 +26,8 @@ tests = [ testGroup "base tag"
"<head><base href=\"http://www.w3schools.com/images/\" ></head><body><img src=\"http://example.com/stickman.gif\" alt=\"Stickman\"></head>" =?>
plain (image "http://example.com/stickman.gif" "" (text "Stickman"))
]
+ , testGroup "anchors"
+ [ test html "anchor without href" $ "<a name=\"anchor\"/>" =?>
+ plain (spanWith ("anchor",[],[]) mempty)
+ ]
]