CMS MADE SIMPLE FORGE

Polls Made Simple

 

[#7823] polls output does not pass html validator

avatar
Created By: Piotras Cimmperman (vilkis)
Date Submitted: Mon Apr 16 06:17:01 -0400 2012

Assigned To: Morten Poulsen (silmarillion)
Version: 1.0.0
CMSMS Version: 1.10.3
Severity: Minor
Resolution: None
State: Open
Summary:
polls output does not pass html validator
Detailed Description:
Validator error:
"Bad value pool-block 4 for attribute id on element div: An ID must not contain
whitespace.

<div id='pool-block 4' class='poll-block'>

Syntax of id:
An ID consists of at least one character but must not contain any
whitespace."


Solutions:
1. move lines of functions GetPollOutput:
$output="<div id='poll-block ".$pollid."'>";
 and GetResultOutput:
$output="<div id='pool-block ".$pollid."' class='poll-block'>\n";

to smarty template.



2. or add underscore:
$output="<div id='poll-block_".$pollid."'>";
$output="<div id='pool-block_".$pollid."' class='poll-block'>\n";


History

Comments
avatar
Date: 2013-01-01 13:38
Posted By: Morten Poulsen (silmarillion)

uhm, are you sure you see this problem in version 1.0.0, because I think it is
fixed there, bnut may have been an issue in earlier versions.
      
Updates

Updated: 2012-04-16 06:17
version_id: -1 => 29472
resolution_id: => 5
severity_id: 12 => 3
cmsms_version_id: -1 => 29495
assigned_to_id: 100 => 113