packages feed

tagsoup 0.14.5 → 0.14.6

raw patch · 4 files changed

+5/−2 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGES.txt view
@@ -1,5 +1,7 @@ Changelog for TagSoup +0.14.6, released 2018-02-27+    Fix up source positions on bogus <! markers 0.14.5, released 2018-02-27     Fix up source positions on bogus <? markers 0.14.4, released 2018-02-26
src/Text/HTML/TagSoup/Specification.hs view
@@ -227,7 +227,7 @@     _ | Just s <- next "--" -> Comment & commentStart s     _ | isAlpha hd -> Tag & '!' & hd & tagName TypeDecl tl -- NEIL     _ | Just s <- next "[CDATA[" -> cdataSection s-    _ -> pos $ errWant "tag name" & bogusComment s+    _ -> errWant "tag name" & bogusComment s   -- 8.2.4.18 Comment start state
tagsoup.cabal view
@@ -1,6 +1,6 @@ cabal-version:  >= 1.18 name:           tagsoup-version:        0.14.5+version:        0.14.6 copyright:      Neil Mitchell 2006-2018 author:         Neil Mitchell <ndmitchell@gmail.com> maintainer:     Neil Mitchell <ndmitchell@gmail.com>
test/TagSoup/Test.hs view
@@ -251,6 +251,7 @@     p "<div><!--foo-->bar</div>" === [TagPosition 1 1,TagOpen "div" [],TagPosition 1 6,TagComment "foo",TagPosition 1 16,TagText "bar",TagPosition 1 19,TagClose "div"]     p "<div><?foo</div>" === [TagPosition 1 1,TagOpen "div" [],TagPosition 1 6,TagOpen "?foo<" [("div","")]]     p "<div><?</div>" === [TagPosition 1 1,TagOpen "div" [],TagPosition 1 6,TagText "<?",TagPosition 1 8,TagClose "div"]+    p "<div><!</div>" === [TagPosition 1 1,TagOpen "div" [],TagPosition 1 6,TagComment "</div"]     p "<![CDATA[x]]>" === [TagPosition 1 10,TagText "x"]     p "<!html>" === [TagPosition 1 1,TagOpen "!html" []]