Taggic / orphanmedia

syntax plugin to show orphan and missing media files of your dokuwiki
http://www.fristercons.de/fcon/doku.php?id=orphanmedia:descr
GNU General Public License v2.0
3 stars 0 forks source link

HTML Validation #3

Closed flammy closed 13 years ago

flammy commented 13 years ago

HTML is not valid:

the width the q.png and nok.png inside is not enclosed by .

Change the function to:

function case1_good_output($c1_medialist,$img)
{
    $i1 = 0; 
    foreach($c1_medialist as $afile) {
        $i1++;                                                                                         
        $output.= '<tr><td class="col0 centeralign"><a href="' . DOKU_URL . '/lib/plugins/orphanmedia/images/' . $img . '"><img src="' . DOKU_URL . '/lib/plugins/orphanmedia/images/' . $img . '" class="media" alt="orphan Media File" /></a></td>'
                                 . '<td>'. $i1 . '</td><td>' . $afile . '</td></tr>';
    }             
    $output.= '</table></p>';        
    return $output;
}
flammy commented 13 years ago

Remove the element < div class="level1" > (remove spaces next to the brackets) its not closed, so it causes some validation errors.

Its not necessary in the structure, so it can be removed.

Taggic commented 13 years ago

Hi flammy,

thank you very much for these details, I like that. It will be corrected together with your first comment possibly by tomorrow.

br Taggic

Taggic commented 13 years ago

habe dein letztes pattern noch nicht implementiert, habe es zu spät gesehen => next time dafür sind nun html output geändert, ob korrigiert weiß ich nicht, denn < div class="level1" > hab ich in meinem file nicht finden können. options sind nun auch enthalten.

gruß taggic