Currently, to write an combobox in MediaWiki, the steps are:
- a call to Xml:openElement for <select...
- as many calls to Html:element( 'option', ...) as the count of options
- a call to Xml:closeElement to get the </select>
This makes operations like "write a combobox with this array as options and set the option ... as default" rather long and tedious to write.
A widget class would be interesting to abstract the process.
Move XmlSelect to its own file, and use it where it should be used in various codez.
See P673 for codes to replace