Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -695,8 +695,9 @@ |
696 | 696 | : $value->getDefault(); |
697 | 697 | $tableHtml .= $value->getTableRow( $v ); |
698 | 698 | |
699 | | - if ( $value->getLabel() != ' ' ) |
| 699 | + if ( $value->getLabel() != ' ' ) { |
700 | 700 | $hasLeftColumn = true; |
| 701 | + } |
701 | 702 | } elseif ( is_array( $value ) ) { |
702 | 703 | $section = $this->displaySection( $value, $key ); |
703 | 704 | $legend = $this->getLegend( $key ); |
— | — | @@ -708,7 +709,7 @@ |
709 | 710 | } |
710 | 711 | $attributes = array(); |
711 | 712 | if ( $displayTitle ) { |
712 | | - $attributes["title"] = Sanitizer::escapeId( $key ); |
| 713 | + $attributes["id"] = 'prefsection-' . Sanitizer::escapeId( $key, 'noninitial' ); |
713 | 714 | } |
714 | 715 | $subsectionHtml .= Xml::fieldset( $legend, $section, $attributes ) . "\n"; |
715 | 716 | } |