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 263 - hc_nodecommentnodeattributes.html docu not accurate
Summary: hc_nodecommentnodeattributes.html docu not accurate
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 1 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 minor
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-30 10:40 UTC by David Faure
Modified: 2003-09-23 03:55 UTC (History)
0 users

See Also:


Attachments

Description David Faure 2003-06-30 10:40:58 UTC
Documentation bug: hc_nodecommentnodeattributes.html says: 
    Retrieve the Comment Node(third child) of the DOM 
    document and invoke the "getAttributes()" method on the 
    Comment Node. 
 
But the new test looks at any comment node as a direct child of the document, 
and checks its attributes property; then the test creates a comment node and 
checks its attributes property. (so the "third child" comment is wrong). 
 
This is a good test however because it doesn't depend on the result of 
hc_commentgetcomment.html (i.e. whether the existing comment node can 
be found or not).
Comment 1 Curt Arnold 2003-09-22 23:55:26 UTC
Copied comment from nodecommentnodeattributes.xml


Index: hc_nodecommentnodeattributes.xml
===================================================================
RCS file:
/sources/public/2001/DOM-Test-Suite/tests/level1/core/hc_nodecommentnodeattributes.xml,v
retrieving revision 1.2
diff -u -r1.2 hc_nodecommentnodeattributes.xml
--- hc_nodecommentnodeattributes.xml	28 Jun 2003 19:26:23 -0000	1.2
+++ hc_nodecommentnodeattributes.xml	23 Sep 2003 03:54:32 -0000
@@ -18,16 +18,18 @@
 <description>
     The "getAttributes()" method invoked on a Comment 
     Node returns null.
-    
-    Retrieve the Comment Node(third child) of the DOM 
-    document and invoke the "getAttributes()" method on the 
-    Comment Node.   It should return null. 
+
+    Find any comment that is an immediate child of the root
+    and assert that Node.attributes is null.  Then create
+    a new comment node (in case they had been omitted) and
+    make the assertion.    
 </description>
 
 <date qualifier="created">2002-06-09</date>
 <subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/>
 <subject
resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/>
 <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=248"/>
+<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=263"/>
 </metadata>
 <var name="doc" type="Document"/>
 <var name="commentNode" type="Node"/>