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

Neil Mitchell ndmitchell at gmail.com
Mon May 19 06:51:30 EDT 2008

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 seems
> clear that they are not allowed between Name, Eq, and AttValue.
> Whether this is the right behavior for TagSoup, which is styled as a
> fast-and-loose XML/HTML processor, is another matter.

It seems that both Firefox and IE accept the attribute values with
spaces around the equals, so I think that's a sensible choice for
tagsoup. I must confess I haven't actually read the XML definition in
the last 5 years, but probably should!



More information about the Haskell-Cafe mailing list