Open Bug 402130 Opened 17 years ago Updated 2 years ago

Attribute nodes as context node with XPath of "." result in NS_ERROR_OUT_OF_MEMORY

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Windows XP
defect

Tracking

()

People

(Reporter: WeirdAl, Unassigned)

References

Details

Spin off from XPath Generator bug.  When an attribute node is the context node and the XPath says ".", the target node of the XPath should also be the attribute node.  Instead, a NS_ERROR_OUT_OF_MEMORY exception is thrown.

The test is currently in this file, but disabled:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/xpath-generator/test/unit/test_bug319768.js&rev=1.1&mark=310-314#310
Could you upload a testcase.
Perhaps tonight.  One thing I forgot to mention, which the link in comment 0 clarifies, is that the attribute has no owner element.  Thus, this really is an edge case.
Component: DOM: Core → DOM: Core & HTML
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.