MDL-24650 xhtml strict fix of hidden "Go" buttons
authorPetr Skoda <skodak@moodle.org>
Wed, 13 Oct 2010 17:32:33 +0000 (17:32 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 13 Oct 2010 17:32:33 +0000 (17:32 +0000)
lib/outputrenderers.php

index 24848a3..6c66698 100644 (file)
@@ -1173,7 +1173,7 @@ class core_renderer extends renderer_base {
         $output .= html_writer::select($select->options, $select->name, $select->selected, $select->nothing, $select->attributes);
 
         $go = html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('go')));
-        $output .= html_writer::tag('noscript', $go, array('style'=>'inline'));
+        $output .= html_writer::tag('noscript', html_writer::tag('div', $go), array('style'=>'inline'));
 
         $nothing = empty($select->nothing) ? false : key($select->nothing);
         $this->page->requires->js_init_call('M.util.init_select_autosubmit', array($select->formid, $select->attributes['id'], $nothing));
@@ -1289,7 +1289,7 @@ class core_renderer extends renderer_base {
         $output .= html_writer::select($urls, 'jump', $selected, $select->nothing, $select->attributes);
 
         $go = html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('go')));
-        $output .= html_writer::tag('noscript', $go, array('style'=>'inline'));
+        $output .= html_writer::tag('noscript', html_writer::tag('div', $go), array('style'=>'inline'));
 
         $nothing = empty($select->nothing) ? false : key($select->nothing);
         $output .= $this->page->requires->js_init_call('M.util.init_url_select', array($select->formid, $select->attributes['id'], $nothing));