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 402 - documentimportnode14 has misleading description
Summary: documentimportnode14 has misleading description
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 2 (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: 2003-12-09 11:25 UTC by Andrew Clover
Modified: 2003-12-23 04:48 UTC (History)
0 users

See Also:


Attachments
Changes test to import into new document and checks default and explict attributes (3.61 KB, patch)
2003-12-22 23:47 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-09 11:25:41 UTC
The test documentimportnode14 in CVS does not test for what its description
thinks it does.

The description states that the test checks a default (non-specified) Attr is
copied when its owner Element is imported. However according to spec this should
*not* happen.

The real reason the test works is that the element is being imported into its
own document, with the same ATTLIST in the doctype, and so the default attribute
is added to the element again at the end of the import process, rather than
simply being copied. Since the default attribute is contained in the external
subset, the test will only work for external-entity-including implementations.

Incidentally, the test chooses the fourth *:employee element (item(3)), not the
third as stated in the text.
Comment 1 Curt Arnold 2003-12-22 23:47:08 UTC
Created attachment 142 [details]
Changes test to import into new document and checks default and explict attributes