User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:220.127.116.11) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729) Build Identifier: 1.9.1b3 Since <deck> elements are implemented in XBL, there is no easy way to manipulate an instance from C++ (to change the selected child, for instance). Having the XBL binding implement a standard xpcom interface would provide a convenient way to manipulate the element from C++. What I propose is the creation of an nsIDOMXULDeckElement interface and corresponding .idl file, and modification to the deck binding in general.xml to implement it. I have attached an idl file and a patch for the XBL. I am currently using this method to manipulate a <deck>, and it seems to work fine. Reproducible: Always
Created attachment 370471 [details] [diff] [review] Patches the <deck> xbl binding to implement nsIDOMXULDeckElement
If you want somebody to have a look at your patch, you'll have to set its review flag to a Toolkit peer such as Neil Deakin (see <http://www.mozilla.org/projects/toolkit/review.html>). It'd also help if you could post both changes in the same patch (just hg add the IDL before diff'ing).
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.