$options[] = self::option( $name, $index, $index === $selected );
}
- $ret = Xml::openElement( 'select', array( 'id' => 'namespace', 'name' => $element_name,
- 'class' => 'namespaceselector' ) )
+ $ret = Xml::openElement( 'select', array( 'class' => 'namespaceselector', 'id' => 'namespace',
+ 'name' => $element_name ) )
. "\n"
. implode( "\n", $options )
. "\n"
function testNamespaceSelector() {
$this->assertEquals(
- '<select id="namespace" name="namespace" class="namespaceselector">
+ '<select class="namespaceselector" id="namespace" name="namespace">
<option value="0">(Main)</option>
<option value="1">Talk</option>
<option value="2">User</option>
'Basic namespace selector without custom options'
);
$this->assertEquals(
- '<label for="myname">Select a namespace:</label> <select id="namespace" name="myname" class="namespaceselector">
+ '<label for="myname">Select a namespace:</label> <select class="namespaceselector" id="namespace" name="myname">
<option value="all">all</option>
<option value="0">(Main)</option>
<option value="1">Talk</option>