A class named XmlSelect can be used to build HTML for a <select>.
This should be replaced, similiar to T341775: Discourage, deprecate and stop using Xml methods for building HTML markup (remove with 1.47).
Possible replacements:
- New function in the Html class
- Using Html class directly in all the places
- OOUI or Codex widget
- ...
This includes the OO-style usage:
$select = new XmlSelect( ... ); $select->addOption( ... ); ... = $select->getHtml();
and static functions:
- XmlSelect::formatOptions
- XmlSelect::parseOptionsMessage
Usage in wmf-deployed code: https://codesearch.wmcloud.org/deployed/?q=XmlSelect