From 50f0cfcc1a96a418b5da9539f80499758ac207c7 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 13 Nov 2016 22:41:11 +0100 Subject: HTML reader: only treat "a" element as link if it has href. Otherwise treat as span. Closes #3226. --- tests/Tests/Readers/HTML.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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" "\"Stickman\"" =?> plain (image "http://example.com/stickman.gif" "" (text "Stickman")) ] + , testGroup "anchors" + [ test html "anchor without href" $ "" =?> + plain (spanWith ("anchor",[],[]) mempty) + ] ] -- cgit v1.2.3