[Haskell-cafe] [tagsoup] is it the expected behaviour ?
Neil Mitchell
ndmitchell at gmail.com
Mon May 19 06:41:51 EDT 2008
Hi Fernand,
Using the darcs version:
*Text.HTML.TagSoup> parseTags "<a href = \"what\">uh ?</a>"
[TagOpen "a" [("href","what")],TagText "uh ?",TagClose "a"]
Which you can get from: http://www.cs.york.ac.uk/fp/darcs/tagsoup
This will be bundled up in the next release. If the problem is more
urgent for you, let me know and I'll release a new version. I
appreciate any bugs, or just weird things tagsoup does on malformed
HTML, so I can build up a more comprehensive regression suite.
Thanks
Neil
On Mon, May 19, 2008 at 11:17 AM, Neil Mitchell <ndmitchell at gmail.com> wrote:
> Hi Fernand,
>
>> Experimenting with tagsoup (I'm using GHC 6.8.2 and tagsoup-0.6), I found
>> something which appears to me as strange behaviour : when parsing tag's
>> attributes that have spaces enclosing the "=" sign, tagsoup seems to
>> interpret these as empty attributes' names and values.
>
> Yep, that's the wrong behaviour. I'm just writing a patch now, and
> will email back once its in the development version.
>
> Many thanks for reporting the bug - it will go in the regression test
> and will never be broken again :-)
>
> Thanks
>
> Neil
>
More information about the Haskell-Cafe
mailing list