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 184 - hc_attrcreatedocumentfragment incorrect access to attribute
Summary: hc_attrcreatedocumentfragment incorrect access to attribute
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 1 (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Bob Clary
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-16 08:01 UTC by Joe Schafer
Modified: 2003-06-28 22:44 UTC (History)
0 users

See Also:


Attachments
patch (1.45 KB, patch)
2003-06-28 17:08 UTC, Curt Arnold
Details
Found other places that expected no default attribute values (4.88 KB, patch)
2003-06-28 18:44 UTC, Curt Arnold
Details

Description Joe Schafer 2003-04-16 08:01:39 UTC
The core test hc_attrcreatedocumentfragment reads the hc_staff.xml file and
creates a new element named "html".  Then it adds to it an attribute named "lang".
After that it uses the "item" method on the newly created element's "attributes"
Named Node Map to lookup the newly added attribute.  However, the 
xhtml1-strict.dtd specified as the DTD for the document includes a #FIXED 
attribute value on the "html" element of xmlns='http://www.w3.org/1999/xhtml'.
Therefore that are TWO attributes on the element. Using the "item" method to
lookup the attribute via the index "0" is implementation defined because the
ordering of the members of a Named Node Map is not specified by the DOM spec.
Comment 1 Curt Arnold 2003-06-28 17:08:29 UTC
Created attachment 33 [details]
patch
Comment 2 Curt Arnold 2003-06-28 17:10:14 UTC
Changed so the test iterates through the attribute lists making sure there is 
one "lang" attribute in the NamedNodeMap.
Comment 3 Curt Arnold 2003-06-28 18:44:18 UTC
Created attachment 36 [details]
Found other places that expected no default attribute values