[Xml/Html] new method Html::namespaceSelector
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 25 Jan 2012 03:01:20 +0000 (03:01 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 25 Jan 2012 03:01:20 +0000 (03:01 +0000)
commit11b0b2e7d3481a42ac6c79b169d01fb51a186426
treed0f8369abab9821db8552242fa84848902bd1952
parentcaf275c3a9d86fad0487bbcc080a65fe4b1a243c
[Xml/Html] new method Html::namespaceSelector
* Using params and option arrays instead of 4 random parameters like Xml::namespaceSelector did
* Right now it's passing $selectAttribs['name'] to Xml::label, this is done because that's what Xml::namespaceSelector did. However it's wrong since labels associate over ID not NAME. Will fix in the next commit, making sure unit tests stay functional first. This bug has been in Xml::namespaceSelector for a long time but usually unnoticed as people kept either defaults. Although it was easy to get wrong as the NAME was configurable but the ID was hardcoded in Xml::namespaceSelector.
* Deprecated Xml::namespaceSelector and made it cal Html::namespaceSelector

* Follows-up r109974, r109698
* XmlTest.php still runs successfully
RELEASE-NOTES-1.19
includes/Html.php
includes/Xml.php