Open Bug 253147 Opened 15 years ago Updated 11 years ago
Need ability to overlay elements with no id's (via xpath?)
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.: http://lxr.mozilla.org/seamonkey/source/mailnews/compose/prefs/resources/content/pref-composing_messages.xul 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?
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.