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 420 - Various comparedocumentposition tests rely on imp-spec behaviour
Summary: Various comparedocumentposition tests rely on imp-spec behaviour
Status: RESOLVED FIXED
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: 2003-12-12 14:53 UTC by Andrew Clover
Modified: 2004-01-07 04:54 UTC (History)
0 users

See Also:


Attachments
Example nodecomparedocumentposition05 fix (2.50 KB, patch)
2003-12-12 14:55 UTC, Andrew Clover
Details
Used bitmasking to eliminate over specification (52.98 KB, patch)
2004-01-06 23:53 UTC, Curt Arnold
Details

Description Andrew Clover 2003-12-12 14:53:36 UTC
level3/core/comparedocumentposition03,
level3/core/comparedocumentposition05,
level3/core/comparedocumentposition16,
level3/core/comparedocumentposition23,
level3/core/comparedocumentposition33:

These test an implementation-defined ordering. They correctly require a result
including IMPLEMENTATION_SPECIFIC, but also require that the one particular node
FOLLOWs the other. This can't be relied on as that's the point of implementation
specificity. Only the consistency of the result should be checked for if
anything (ie. does the reverse test give the opposite result for
FOLLOWING/PRECEDING).

There might be more tests with the same problem here, that randomness prevented
from appearing whilst I was using the tests.
Comment 1 Andrew Clover 2003-12-12 14:55:36 UTC
Created attachment 96 [details]
Example nodecomparedocumentposition05 fix

This fixes test 05 only - I haven't done the others as the solution here is a
really ugly arithmetic hack. Maybe someone more familiar with TSML could find a
better way of doing it.
Comment 2 Curt Arnold 2004-01-06 23:53:31 UTC
Created attachment 169 [details]
Used bitmasking to eliminate over specification