This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 643 - Attribute child should not be expected to be stripped of its value
Summary: Attribute child should not be expected to be stripped of its value
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 12:12 UTC by nnissar
Modified: 2004-04-02 05:57 UTC (History)
0 users

See Also:


Attachments
Proposed patch to DOMWriterFilterTest2 to correct expected value of attribute child (668 bytes, patch)
2004-03-31 12:15 UTC, nnissar
Details
Same fix, but with changed description and comments (1.89 KB, patch)
2004-04-02 00:57 UTC, Curt Arnold
Details

Description nnissar 2004-03-31 12:12:18 UTC
In Level 3 LS test suite, DOMWriterFilterTest2 incorrectly expects that the 
text node child of an attribute node should have been stripped of its value as 
a result of the LSSerializerFilter rejecting all text nodes.  However, PR 
version of LS spec states that "..children of Attr nodes are not passed to the 
filter." [1] and so this text node child of an attribute node will not be seen 
by the filter, and therefore will not be rejected for serialization. So upon 
parsing the serialized output, the attribute child's nodeValue should be that 
of 'attr1' rather than "".  

[1]http://www.w3.org/TR/2004/PR-DOM-Level-3-LS-20040205/load-save.html#LS-
LSSerializerFilter
Comment 1 nnissar 2004-03-31 12:15:48 UTC
Created attachment 334 [details]
Proposed patch to DOMWriterFilterTest2 to correct expected value of attribute child
Comment 2 Curt Arnold 2004-04-02 00:57:14 UTC
Created attachment 341 [details]
Same fix, but with changed description and comments