Closed Bug 1637712 Opened 5 years ago Closed 4 years ago

Consider to move *Ancestor* API to nsINode

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/source/dom/base/AncestorIterator.h
hides the iterators quite well by being outside nsINode.
And the APIs are really about ancestors of a node so node->AncestorsOfType<T>() should be quite reasonable.

Severity: -- → N/A
Priority: -- → P3

SGTM, for what is worth :)

Assignee: nobody → bugs
Status: NEW → ASSIGNED
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2c5eea627917 Consider to move *Ancestor* API to nsINode r=emilio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: