pombreda / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

MSIE: base2.dom.Node.compareDocumentPosition returns incorrect value when invoked with same nodes #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In MSIE use Node.compareDocumentPosition(node, other) where 'node' and
'other' point to the same element.

What is the expected output? What do you see instead?
According to the specification
(http://www.w3.org/TR/DOM-Level-3-Core/core.html#DocumentPosition) the
returned value must be 0 (no flags are set). Instead the return value is 1
(disconnected).

What version of the product are you using? On what operating system?
1.1 (alpha1)

Original issue reported on code.google.com by mdimitrov@gmail.com on 27 Nov 2009 at 11:24

GoogleCodeExporter commented 9 years ago
Good catch. I need to fix disconnected too but it's slightly slower to test for 
that.

Original comment by dean.edw...@gmail.com on 27 Nov 2009 at 2:02

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 27 Nov 2009 at 2:15