Index: trunk/phase3/tests/phpunit/includes/XmlTest.php |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | |
196 | 196 | function testNamespaceSelector() { |
197 | 197 | $this->assertEquals( |
198 | | - '<select id="namespace" name="namespace" class="namespaceselector"> |
| 198 | + '<select class="namespaceselector" id="namespace" name="namespace"> |
199 | 199 | <option value="0">(Main)</option> |
200 | 200 | <option value="1">Talk</option> |
201 | 201 | <option value="2">User</option> |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | 'Basic namespace selector without custom options' |
216 | 216 | ); |
217 | 217 | $this->assertEquals( |
218 | | - '<label for="myname">Select a namespace:</label> <select id="namespace" name="myname" class="namespaceselector"> |
| 218 | + '<label for="myname">Select a namespace:</label> <select class="namespaceselector" id="namespace" name="myname"> |
219 | 219 | <option value="all">all</option> |
220 | 220 | <option value="0">(Main)</option> |
221 | 221 | <option value="1">Talk</option> |
Index: trunk/phase3/includes/Xml.php |
— | — | @@ -143,8 +143,8 @@ |
144 | 144 | $options[] = self::option( $name, $index, $index === $selected ); |
145 | 145 | } |
146 | 146 | |
147 | | - $ret = Xml::openElement( 'select', array( 'id' => 'namespace', 'name' => $element_name, |
148 | | - 'class' => 'namespaceselector' ) ) |
| 147 | + $ret = Xml::openElement( 'select', array( 'class' => 'namespaceselector', 'id' => 'namespace', |
| 148 | + 'name' => $element_name ) ) |
149 | 149 | . "\n" |
150 | 150 | . implode( "\n", $options ) |
151 | 151 | . "\n" |