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
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
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
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
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
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