"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/Tests/Readers/HTML.hs" between
pandoc-2.14.0.3.tar.gz and pandoc-2.14.1.tar.gz

About: Pandoc converts files from one markup format into another.

HTML.hs  (pandoc-2.14.0.3):HTML.hs  (pandoc-2.14.1)
skipping to change at line 77 skipping to change at line 77
"<head><base href=\"http://www.w3schools.com/images/\" ></head><body ><img src=\"/stickman.gif\" alt=\"Stickman\"></head>" =?> "<head><base href=\"http://www.w3schools.com/images/\" ></head><body ><img src=\"/stickman.gif\" alt=\"Stickman\"></head>" =?>
plain (image "http://www.w3schools.com/stickman.gif" "" (text "Stick man")) plain (image "http://www.w3schools.com/stickman.gif" "" (text "Stick man"))
, test html "absolute URL" $ , test html "absolute URL" $
"<head><base href=\"http://www.w3schools.com/images/\" ></head><body ><img src=\"http://example.com/stickman.gif\" alt=\"Stickman\"></head>" =?> "<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")) plain (image "http://example.com/stickman.gif" "" (text "Stickman"))
] ]
, testGroup "anchors" , testGroup "anchors"
[ test html "anchor without href" $ "<a name=\"anchor\"/>" =?> [ test html "anchor without href" $ "<a name=\"anchor\"/>" =?>
plain (spanWith ("anchor",[],[]) mempty) plain (spanWith ("anchor",[],[]) mempty)
] ]
, testGroup "img"
[ test html "data-external attribute" $ "<img data-external=\"1\" src=
\"http://example.com/stickman.gif\">" =?>
plain (imageWith ("", [], [("external", "1")]) "http://example.com/s
tickman.gif" "" "")
, test html "title" $ "<img title=\"The title\" src=\"http://example.c
om/stickman.gif\">" =?>
plain (imageWith ("", [], []) "http://example.com/stickman.gif" "The
title" "")
]
, testGroup "lang" , testGroup "lang"
[ test html "lang on <html>" $ "<html lang=\"es\">hola" =?> [ test html "lang on <html>" $ "<html lang=\"es\">hola" =?>
setMeta "lang" (text "es") (doc (plain (text "hola"))) setMeta "lang" (text "es") (doc (plain (text "hola")))
, test html "xml:lang on <html>" $ "<html xmlns=\"http://www.w3.org/19 99/xhtml\" xml:lang=\"es\"><head></head><body>hola</body></html>" =?> , test html "xml:lang on <html>" $ "<html xmlns=\"http://www.w3.org/19 99/xhtml\" xml:lang=\"es\"><head></head><body>hola</body></html>" =?>
setMeta "lang" (text "es") (doc (plain (text "hola"))) setMeta "lang" (text "es") (doc (plain (text "hola")))
] ]
, testGroup "main" , testGroup "main"
[ test htmlNativeDivs "<main> becomes <div role=main>" $ "<main>hello< /main>" =?> [ test htmlNativeDivs "<main> becomes <div role=main>" $ "<main>hello< /main>" =?>
doc (divWith ("", [], [("role", "main")]) (plain (text "hello"))) doc (divWith ("", [], [("role", "main")]) (plain (text "hello")))
, test htmlNativeDivs "<main role=X> becomes <div role=X>" $ "<main ro le=foobar>hello</main>" =?> , test htmlNativeDivs "<main role=X> becomes <div role=X>" $ "<main ro le=foobar>hello</main>" =?>
 End of changes. 1 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)