Henrik van Ginhoven <[EMAIL PROTECTED]> writes:

>>     <img src=foo/>
>> 
>> Is the '/' a part of `foo' or does it close the tag?
> 
> Actually, that tag is invalid ;-)

Oh, I know that.  Just like I know that _ and % are illegal in
attribute values, not to mention attribute names.  But do the HTML
authors know it?  How about authoring tools?  Finally, browsers are
notorious for ignoring invalid or malformed HTML, which is why
everyone else has to be able to parse the mess.

But I'm digressing.  My point is that until someone comes up with an
`xhtml-parse.c', I have to add support for XHTML into the current,
lenient parser.

As for whether the preceding whitespace is mandatory, it is a
non-issue when quoting is present.  Both these come out correctly:

    <img src="foo/"/>   # <img src="foo/"></img>

    <img src="foo/" />  # <img src="foo/"></img>

So strict XHTML should come out OK.

As for the case without quotes, if noone objects, I'll commit the fix
that implements the semantics as explained in the previous message.

Reply via email to