Closed Bug 374610 Opened 15 years ago Closed 14 years ago

xul:menuitem should have a way to get parent xul:menu

Categories

(Toolkit :: XUL Widgets, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

This is spun off bug 372552. Now xul:menu has ability to navigate via xul:menu hierarchy and it is helful for accessibility code. Now I need to get an ability to get xul:menu (nsIDOMXULContainerElement) from xul:menuitem. Now I can see one way, it is to add interface like nsIDOMXULContainerItemElement.

interface nsIDOMXULContainerItemElement: public nsIDOMXULElement{
  readonly attribute nsIDOMXULContainerElemenet container;
};

What is the best way?
Blocks: 389926
Would it be ok if menuitem will implement new nsIDOMXULContainerItemElement  interface from the comment above?
Yes, if the method is 'parentContainer'.
Attached patch patchSplinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #301281 - Flags: review?
Attachment #301281 - Flags: review? → review?(enndeakin)
Attachment #301281 - Flags: review?(enndeakin) → review+
Attachment #301281 - Flags: review?(neil)
Comment on attachment 301281 [details] [diff] [review]
patch

sr=me
Attachment #301281 - Flags: review?(neil) → review+
Attachment #301281 - Flags: approval1.9?
Attachment #301281 - Flags: approval1.9? → approval1.9+
checked in
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Keywords: dev-doc-needed
Documented.
You need to log in before you can comment on or make changes to this bug.