Closed ocramz closed 1 year ago
Version : scalpel-core 0.6.2.1
I've just encountered a behavior which looks like a bug ; for certain tag names the behavior of the selector returns an empty string
Define HTML test strings (that only differ in tag name) (the <dl> tag is a "description list" : https://www.w3schools.com/TAGS/tag_dl.asp )
<dl>
strDL :: String strDL = "<dl class=\"xxx\">asdf</div>" strDIV :: String strDIV = "<div class=\"xxx\">asdf</div>"
and a helper
hasXXX :: TagName -> Selector hasXXX tag = tag @: [hasClass "xxx"]
Then
-- OverloadedStrings λ> scrapeStringLike strDL (text (hasXXX "dl")) Just "" λ> scrapeStringLike strDIV (text (hasXXX "div")) Just "asdf"
which is super counterintuitive
Uggggh sorry my bad. Missed a typo
Version : scalpel-core 0.6.2.1
I've just encountered a behavior which looks like a bug ; for certain tag names the behavior of the selector returns an empty string
Define HTML test strings (that only differ in tag name) (the
<dl>
tag is a "description list" : https://www.w3schools.com/TAGS/tag_dl.asp )and a helper
Then
which is super counterintuitive