Open Bug 253147 Opened 18 years ago Updated 14 years ago

Need ability to overlay elements with no id's (via xpath?)


(Core :: XUL, enhancement)

Not set




(Reporter: eyalroz1, Unassigned)


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040721
Build Identifier: 

XUL authors often neglect to set the id's of container elements, e.g.:

and overlay authors are unable to add elements to these containers without
resorting to writing event handlers or other such dirty tricks. One would expect
an attribute of currentposition="n" (i.e. modify the existing element in the
n'th position; this would not be like position="n" which means insert before the
existing element in the n'th position). On the face of it, not too difficult to
implement (after all, the position attribute already means there's some by-index
matching going on).

Reproducible: Always
Steps to Reproduce:
If someone ends up being gung-ho to do this, why not just use XPath?
Ever confirmed: true
XPath-based overlaying would sound really nice to me...
Summary: [RFE] Need ability to reference elements with no id's from an overlay → Need ability to overlay elements with no id's (via xpath?)
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.