W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 2010

XML 1.0 5e: superfluous whitespace inside quotation marks

From: Nicolas Roeser <n-roeser@gmx.net>
Date: Tue, 16 Feb 2010 23:50:14 +0100
Message-ID: <4B7B2126.9050805@gmx.net>
To: xml-editor@w3.org
Hello,

in some cases, superfluous whitespace appears after an opening or before
a closing (straight) quotation mark (‘"’). See, for example, one
paragraph below http://www.w3.org/TR/2008/REC-xml-20081126/#dt-chardata:
“The ampersand character (&) and the left angle bracket (<) […] MUST be
escaped using […] the strings " &amp; " and " &lt; " respectively.”

Someone reading that text might interpret that as to include the space
before/after ‘&amp;’ or ‘&lt;’. I think the extra whitespace should be
removed.

There are more occurrences of such extra whitespace.

This seems to originate in the XML source[1]; look for usages of the
‘quote’ element. Either the extra whitespace should be removed there, or
the processing of whitespace after an opening or before a closing
‘quote’ tag should be changed.

[1] http://www.w3.org/TR/2008/REC-xml-20081126/REC-xml-20081126.xml

Thanks,
-- 
Nico


Received on Tuesday, 16 February 2010 22:58:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 16 February 2010 22:59:10 GMT