I called on (DocumentType)->compareDocumentPosition(node), and hit this assertion. Tracing the code onward, it's clear Mozilla does the right thing and returns the right value. So for document type nodes, this assertion is bogus. Testcase and patch coming up.
Created attachment 211672 [details] fixed testcase Sorry, the original test case had leftover debugging code in it and wouldn't return completely correct results.
Attachment #211670 - Attachment is obsolete: true
Reference attachment 211672 [details] for the testcase, and ignore the alert. For x.compareDocumentPosition(y), x represents the row, and y represents the column.
Created attachment 211673 [details] [diff] [review] patch
12 years ago
checked in to trunk: Checking in content/base/src/nsGenericElement.cpp; /cvsroot/mozilla/content/base/src/nsGenericElement.cpp,v <-- nsGenericElement.cpp new revision: 3.447; previous revision: 3.446 done
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.