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 509 - hc_commentgetcomment expects comments to be preserved by HTML processors
Summary: hc_commentgetcomment expects comments to be preserved by HTML processors
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: 2004-01-28 11:31 UTC by Curt Arnold
Modified: 2004-01-28 23:28 UTC (History)
0 users

See Also:


Attachments
Adds implementationAttribute ignoringComments (17.34 KB, patch)
2004-01-28 18:21 UTC, Curt Arnold
Details

Description Curt Arnold 2004-01-28 11:31:08 UTC
hc_commentgetcomment reads hc_staff which contains one comment.  Mozilla,
Konqueror, and Opera's HTML implementation eliminate comments when loading HTML
documents which cause this test to fail.  IE fails this test since it reports
the document type declaration as a comment, but actually preserve the comment. 
Mozilla's XHTML implementation preserves the comment.

The proposed solution is to add implementation attribute "ignoringComments" that
could be used to prevent this test from running on implementations that
eliminate comments and to tests that use createComment to check the expected
values of nodeName, nodeValue, nodeType and attributes.
Comment 1 Curt Arnold 2004-01-28 18:21:15 UTC
Created attachment 207 [details]
Adds implementationAttribute ignoringComments
Comment 2 Curt Arnold 2004-01-28 18:28:04 UTC
Solution discussed in 28 Jan 2004 conference call