Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php	(revision 18372)
+++ wp-admin/includes/template.php	(working copy)
@@ -1163,6 +1163,7 @@
 		return;
 
 	foreach ( (array) $wp_settings_sections[$page] as $section ) {
+		echo '<div id="section-' . sanitize_html_class( $section['id'] ) . '" class="settings-section">';
 		echo "<h3>{$section['title']}</h3>\n";
 		call_user_func($section['callback'], $section);
 		if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) )
@@ -1170,6 +1171,7 @@
 		echo '<table class="form-table">';
 		do_settings_fields($page, $section['id']);
 		echo '</table>';
+		echo '</div>';
 	}
 }
 
@@ -1194,7 +1196,7 @@
 		return;
 
 	foreach ( (array) $wp_settings_fields[$page][$section] as $field ) {
-		echo '<tr valign="top">';
+		echo '<tr id="setting-' . sanitize_html_class( $field['id'] ) . '" class="settings-field" valign="top">';
 		if ( !empty($field['args']['label_for']) )
 			echo '<th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>';
 		else
