[XML-SIG] Bug report in DOM: ' instead of " in attribs
Fredrik Lundh
Fredrik Lundh" <effbot@telia.com
Tue, 9 May 2000 09:54:13 +0200
Mickael Remond <mickael.remond@IDEALX.com> wrote:
> The toxml method in the class Element write the attributes with two =
single
> quotes instead of using two double quotes as this should be done =
usually done
> in XML.
XML allows you to use either double quotes or single quotes
for attribute values (see the AttValue production).
> doc.toxml writes :
> <element attr=3D'value'>
that's perfectly valid XML.
> Has this bug been identified before ?
it's not a bug -- at least not where you think it is. since I
strongly doubt that xmlproc messes up on this one, maybe
the real bug is that the DOM writer doesn't look for quotes
in the attribute content?
the following is *not* a valid tag:
<element attr=3D'it's the monty python...'>
it should be written as:
<element attr=3D"it's the monty python...">
or
<element attr=3D'it's the monty python...'>
</F>