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 729 - elementsetidattributens05 uses unreliable Level 1 method
Summary: elementsetidattributens05 uses unreliable Level 1 method
Status: NEW
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: 2004-05-22 20:41 UTC by Andrew Clover
Modified: 2004-05-23 00:41 UTC (History)
0 users

See Also:


Attachments

Description Andrew Clover 2004-05-22 20:41:18 UTC
The DOM L3 Core test:

  elementsetidattributens05

Mixes Level 1 and 2 methods dangerously. It sets an ID attribute using Level 2
methods, with the same nodeName as an existing attribute but different
namespaceURIs. As per 1.3.3, this should result in two attributes with the same
nodeName on one element.

The test then tries to retrieve the ID attribute using a Level 1 method,
attributes.getNamedItem. This could return either of the two attributes at
random, causing the following test for ID-ness to fail intermittantly.