From d0bbc8e984e92cdaa71262f19584197083d46f8d Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 2 Apr 2004 09:46:59 +0000 Subject: [PATCH] xhtml tweaks, non-minimized values for checked --- includes/SpecialPreferences.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 20053c290f..abd63f1a08 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -222,7 +222,7 @@ class PreferencesForm { if ( $i >= 0 ) { $checked = ""; if ( $this->mSearchNs[$i] ) { - $checked = " checked"; + $checked = ' checked="checked"'; } $name = str_replace( "_", " ", $namespaces[$i] ); if ( "" == $name ) { @@ -303,7 +303,7 @@ class PreferencesForm { # Quickbar setting # for ( $i = 0; $i < count( $qbs ); ++$i ) { - if ( $i == $this->mQuickbar ) { $checked = " checked"; } + if ( $i == $this->mQuickbar ) { $checked = ' checked="checked"'; } else { $checked = ""; } $wgOut->addHTML( "
\n" ); @@ -328,7 +328,7 @@ class PreferencesForm { # $skinNames (skins is all skin names from Language.php) foreach ($wgValidSkinNames as $skinkey => $skinname ) { if ( $skinkey == $this->mSkin ) { - $checked = ' checked'; + $checked = ' checked="checked"'; } else { $checked = ""; } @@ -346,7 +346,7 @@ class PreferencesForm { $wgOut->addHTML(""); foreach ( $togs as $tname => $ttext ) { if ( 1 == $wgUser->getOption( $tname ) ) { - $checked = " checked"; + $checked = ' checked="checked"'; } else { $checked = ""; } @@ -359,7 +359,7 @@ class PreferencesForm { # $wgOut->addHTML( "
$math:
\n" ); for ( $i = 0; $i < count( $mathopts ); ++$i ) { - if ( $i == $this->mMath ) { $checked = " checked"; } + if ( $i == $this->mMath ) { $checked = ' checked="checked"'; } else { $checked = ""; } $wgOut->addHTML( "
\n" ); @@ -372,7 +372,7 @@ class PreferencesForm { $wgOut->addHTML( "
$dateFormat:
" ); for ( $i = 0; $i < count( $dateopts ); ++$i) { if ( $i == $this->mDate ) { - $checked = " checked"; + $checked = ' checked="checked"'; } else { $checked = ""; } @@ -398,7 +398,7 @@ class PreferencesForm { # $this->mUserEmail = wfEscapeHTML( $this->mUserEmail ); $this->mNick = wfEscapeHTML( $this->mNick ); - if ( $this->mEmailFlag ) { $emfc = "checked"; } + if ( $this->mEmailFlag ) { $emfc = 'checked="checked"'; } else { $emfc = ""; } $ps = $this->namespacesCheckboxes(); -- 2.20.1