Check out the LimeSurvey source code on GitHub!

generated code producing HTML errors (poor tag fomatting/closing)

2 years 8 months ago #110079 by lbagley
Running the source output of my limesurvey survey through W3 Validator, there are numerous errors.
My survey has one question and is a 'ranking' survey.

Since many of them are from the limesurvey generated code, I'll need to find a fix for them:
(LimeSurvey version 2.05+ Build 140612)

Some of the V3 Errors reported:
1) Line 80, Column 54: there is no attribute "autocomplete"
<form id="limesurvey" name="limesurvey" autocomplete="off" action="/surveys/limesurvey/index.php/survey/index" method="post">

2) Line 134, Column 92: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<span class="questionhelp" id="vmsg_1"><div id='vmsg_1_default' class='em_default emtip'>All your answers must be different.</div>

3) Line 643, Column 2: character data is not allowed here
<option value="A20">1863-66 - Boise Basin gold rush</option>
option value="A21">1971, 1973 - Riots at Old Pen</option>

4)Line 1094, Column 21: document type does not allow element "option" here
<option value="A26">Idaho statehoodoption>
<option value="A25">Idahoans in war</option>

5) Line 2108, Column 2: character data is not allowed here
<option value="A1">July 26, 1864 - The first edition of the Idaho Statesman</option>
option value="A2">1951 and on - Nuclear power in the Idaho desert</option>

Now, I can grab the source code, made some modifications, plug it back into the validator and get the errors cleaned up.
BUT, that's a futile exercise in that I need the generated code to work.

My questions are:
- have you seen this type of error before?
- do you know of a workaround/fix? and what is it?
- do you have any suggestions of how to make this survey work and appear properly?

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form