Closed Bug 88964 Opened 23 years ago Closed 23 years ago

sortByDocumentOrder has a few minor problems

Categories

(Core :: XSLT, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: sicking, Assigned: sicking)

References

Details

Attachments

(3 files)

sortByDocumentOrder suffers the following problems:

* off-by-one error in ProcessorState::sortByDocumentOrder
* attributes has same doc-order as first child
* nodesets containing nodes from multiple documents isn't sorter correctly

patch coming up... tomorrow
this should be mine
Assignee: kvisco → sicking
Yac, there's a bug in the patch, the

-                orderInfo->order[0] = 0;
+                orderInfo->order[0] = getChildNumber(node);

should be done a few lines up, in the
|if (node->getNodeType() == Node::DOCUMENT_NODE) {|

can't produce a patch right now though...
Status: NEW → ASSIGNED
Priority: -- → P5
This should show the idea I have for nodeOrder comparisons. I'd like to give 
some additional love to DOMHelper::getDocumentOrder to make it out-of-memory-on-
new safe, but no functional changes.

I'm also thinking about moving the getDocumentOrder into Node, but that is 
perhaps a different bug.
testcases coming tomorrow...
r=peterv for 42984.
Priority: P5 → P2
Target Milestone: --- → mozilla0.9.6
this was fixed along with bug 94471
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
we didn't verify for a long time.
I really checked, so VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: