
19 May
2008
19 May
'08
10:51 a.m.
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! Thanks Neil