Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-27550 workshop: fixed XHTML strictness of H3 and A combo
H3 is block level element while A is in-line element in XHTML.
Credit goes to Sam Hemelryk for spotting this during the peer-review.
  • Loading branch information
mudrd8mz committed Aug 2, 2011
1 parent 2c75324 commit 6403358
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/workshop/renderer.php
Expand Up @@ -92,14 +92,14 @@ protected function render_workshop_submission(workshop_submission $submission) {
$o .= $this->output->container_start($classes);
$o .= $this->output->container_start('header');

$title = $this->output->heading(format_string($submission->title), 3, 'title');
$title = format_string($submission->title);

if ($this->page->url != $submission->url) {
$o .= html_writer::link($submission->url, $title);
} else {
$o .= $title;
$title = html_writer::link($submission->url, $title);
}

$o .= $this->output->heading($title, 3, 'title');

if (!$anonymous) {
$author = new stdclass();
$author->id = $submission->authorid;
Expand Down

0 comments on commit 6403358

Please sign in to comment.