W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2007

[Bug 4829] Attribute normalization in K2-DirectConOther-49

From: <bugzilla@wiggum.w3.org>
Date: Thu, 28 Jun 2007 10:06:14 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1I3qtC-0003JZ-Lg@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4829

           Summary: Attribute normalization in K2-DirectConOther-49
           Product: XML Query Test Suite
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: nick@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


I think (unless I'm missing something in the combination of
normalization/serialization rules) this query is wrong:

<e attr="&#x20;&#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;


                &#xD;&#xA;
                &#xD;&#xA;
                &#xD;&#xA;"/>

I think both the newlines and the spaces are replaced with spaces, hence the
attribute is normalized to:

" \r\n\t\r\r\r\r                   \r\n                \r\n               
\r\n"

and hence should output:

<e attr=" &#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;                   &#xD;&#xA;     
           &#xD;&#xA;                 &#xD;&#xA;"></e>

but the expected result is:

<e attr=" &#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;   &#xD;&#xA; &#xD;&#xA;
&#xD;&#xA;"></e>

which appears to be ignoring the spaces at the start of lines 5-7 of the
attribute; I can't find anything in the spec to say should be happening. Is the
input meant to be the following?

<e attr="&#x20;&#xD;&#xA;&#x9;&#xD;&#xD;&#xD;&#xD;


&#xD;&#xA;
&#xD;&#xA;
&#xD;&#xA;"/>
Received on Thursday, 28 June 2007 10:06:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:33 UTC