If empty tag in xml document doesn't have space before '/' symbol parser treats is as a start tag. E.g. <b/> is recognized as a start tag which name is 'b/', but <b /> is parsed correctly.
It seems that '/' symbol must be added to string "^>" in line #786 in std\xml.d.
name = munch(s,"^>"~whitespace);
=>
name = munch(s,"^>/"~whitespace);
Comment #1 by caron800 — 2008-03-15T17:18:15Z
On 15/03/2008, [email protected] <[email protected]> wrote:
> If empty tag in xml document doesn't have space before '/' symbol parser treats
> is as a start tag. E.g. <b/> is recognized as a start tag which name is 'b/',
> but <b /> is parsed correctly.
>
> It seems that '/' symbol must be added to string "^>" in line #786 in
> std\xml.d.
> name = munch(s,"^>"~whitespace);
> =>
> name = munch(s,"^>/"~whitespace);
Ooh - I guess that makes it the first bug that falls to me to fix!
Thanks for pointing it out. Will fix promptly.