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 248 - hc_nodecommentattribute and nodecommentattribute do not make stated assertion
Summary: hc_nodecommentattribute and nodecommentattribute do not make stated assertion
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 1 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-27 22:55 UTC by Curt Arnold
Modified: 2003-06-28 19:59 UTC (History)
0 users

See Also:


Attachments
Patch (5.51 KB, patch)
2003-06-28 15:58 UTC, Curt Arnold
Details

Description Curt Arnold 2003-06-27 22:55:07 UTC
The description of these tests state that they check that Node.attributes on a 
Comment node is null, but the do not make that assertion.  In addition, the hc_ 
version will fail on implementations that do not preserve comments since it 
relies on comment nodes already in the source document.  

Since there are already tests that check that the expected number of comments 
are present and some HTML implementations report PI's and DTD's as comments, 
changing the hc_ test so that it creates the comment is beneficial.
Comment 1 Curt Arnold 2003-06-28 15:58:55 UTC
Created attachment 28 [details]
Patch