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 411 - adoptnode02 requires expandEntityReferences
Summary: adoptnode02 requires expandEntityReferences
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 14:27 UTC by Andrew Clover
Modified: 2003-12-16 07:00 UTC (History)
0 users

See Also:


Attachments
documentadoptnode02 fix (972 bytes, patch)
2003-12-12 14:28 UTC, Andrew Clover
Details
Fixes for documentadoptnode01, 02 and 16 (11.19 KB, patch)
2003-12-16 01:54 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-12 14:27:37 UTC
level3/core/adoptnode02:

Tests the nodeValue of an adopted Attr that contains an entity reference. Since
the doctype of the document being adopted into does not define that entity, an
implementation that doesn't expand entity references during the document load
should change the adopted Attr's nodeValue to 'Y' instead of 'Yes'.
Comment 1 Andrew Clover 2003-12-12 14:28:36 UTC
Created attachment 91 [details]
documentadoptnode02 fix

This changes the test to adopt into a document with the same entities so the
value will be preserved.
Comment 2 Curt Arnold 2003-12-16 01:54:21 UTC
Created attachment 112 [details]
Fixes for documentadoptnode01, 02 and 16
Comment 3 Curt Arnold 2003-12-16 02:00:15 UTC
The expectation of an resolved entity reference also occurs in 
documentadoptnode01 and 16.  The commited patch checks the children of the 
attribute under test to determine if it either contains an entity reference or 
a text node containing the expanded value, so the test is appropriate for any 
entity expansion behavior.