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 185 - importNode07 mixes level 1 and level 2 elements thru importNode
Summary: importNode07 mixes level 1 and level 2 elements thru importNode
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 2 (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-04-16 11:50 UTC by Joe Schafer
Modified: 2003-07-09 17:43 UTC (History)
0 users

See Also:


Attachments

Description Joe Schafer 2003-04-16 11:50:46 UTC
The core test importNode07 creates an element using the level 1 createElement
method.  It then imports the node into another document and later checks the
localName value of the imported element.  Since the element was created as a
level 1 element (and hence has a localName of NULL) when it is duplicated by
the importNode operation it will receive a NULL value for it's localName
attribute.  This causes the test to fail because it is looking for the imported
element to have a non-NULL localName value.
Comment 1 Richard Rivello 2003-07-09 13:43:17 UTC
Modified test to use level 2 method "createElementNS" instead
of createElement from level 1.