[Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-19 Thread Fernand
Hi, 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. For instance (notic

Re: [Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-19 Thread Neil Mitchell
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, th

Re: [Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-19 Thread Neil Mitchell
Hi Fernand, Using the darcs version: *Text.HTML.TagSoup> parseTags "uh ?" [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

Re: [Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-19 Thread Ketil Malde
Fernand <[EMAIL PROTECTED]> writes: > 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' n

Re: [Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-19 Thread Neil Mitchell
Hi Ketil, > I don't think that is legal XML. The definitions of STag and Attribute > from http://www.w3.org/TR/xml11/#NT-STag are: > > [40] STag ::= '<' Name (S Attribute)* S? '>' > [41] Attribute ::= Name Eq AttValue > > And 'S' represents one or more whitespace characters, so it se

Re: [Haskell-cafe] [tagsoup] is it the expected behaviour ?

2008-05-20 Thread Uwe Schmidt
Ketil Malde wrote: > I don't think that is legal XML. The definitions of STag and Attribute > from http://www.w3.org/TR/xml11/#NT-STag are: > > [40] STag::= '<' Name (S Attribute)* S? '>' > [41] Attribute ::=Name Eq AttValue > > And 'S' represents one or more whitespace chara