INVALID CODE! AUUGGHH!

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Well, this doesn't irk me at all but I decided to post it here because I'm sure BigWebMaster would like his WHOLE site to be valid rather than some pages :lol:

The following pages are not valid as what I have found (And their reasons...

Topics (ftopic#####-##.html)
If there is a signature with an image on it, the SGML Validator (the one W3 Validator uses to validate sites) renders the page invalid... Why? Because the image HTML code in the signature don't have ALT tag...
They also don't work when there is CODE or PHP on it... how come? Here's why...
Code: [ Select ]
<div class="quoteHeader">Code:</div><div class="quoteCode"></p>

(That code is on line 390 on [url]page http://www.ozzu.com/website-design-forum/website-layout-t82605-15.html[/url]
What is the problem? DIV tag cannot be enclosed by the tag <p>... that is the rules... a possible workaround? Use <fieldset class="quoteHeader"></fieldset> instead... validates for me...
posting.php?mode=newtopic (and possibly all other modes as well)
Following validation errors...

required attribute "TYPE" not specified
Line 284; column 66: -
Code: [ Select ]
<script language='javascript' src='spelling/spellmessage.js'></script>


required attribute "COLS" not specified
Line 609; column 166: -
Code: [ Select ]
<textarea name="message" rows="20" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width:100%;max-width:100%"></textarea>


End tag for ... omitted, but its declaration does not permit this
Line 707; column 5: -
Code: [ Select ]
<ul>


<li><label>Poll question</label> <input type="text" name="poll_title" size="50" maxlength="255" value=""></li>


<li><label>Poll option</label> <input type="text" name="add_poll_option_text" size="50" maxlength="255" value=""> <input type="submit" class="addPollOption" name="add_poll_option" value="Add option"></li>

<li><label>Days to run poll (Use 0 for never-ending)</label> <input type="text" name="poll_length" size="3" maxlength="3" value=""></li>
<li><label>Show poll results</label> <ul><li><input type="radio" class="radiobutton" name="show_results" value="1" checked="checked"> Yes</li><li><input type="radio" class="radiobutton" name="show_results" value="0" > No</li></ul></li>
<li><label>Show ending time</label> <ul><li><input type="radio" class="radiobutton" name="show_endtime" value="1" checked="checked"> Yes</li><li><input type="radio" class="radiobutton" name="show_endtime" value="0" > No</li></ul></li>




</div>
  1. <ul>
  2. <li><label>Poll question</label> <input type="text" name="poll_title" size="50" maxlength="255" value=""></li>
  3. <li><label>Poll option</label> <input type="text" name="add_poll_option_text" size="50" maxlength="255" value=""> <input type="submit" class="addPollOption" name="add_poll_option" value="Add option"></li>
  4. <li><label>Days to run poll (Use 0 for never-ending)</label> <input type="text" name="poll_length" size="3" maxlength="3" value=""></li>
  5. <li><label>Show poll results</label> <ul><li><input type="radio" class="radiobutton" name="show_results" value="1" checked="checked"> Yes</li><li><input type="radio" class="radiobutton" name="show_results" value="0" > No</li></ul></li>
  6. <li><label>Show ending time</label> <ul><li><input type="radio" class="radiobutton" name="show_endtime" value="1" checked="checked"> Yes</li><li><input type="radio" class="radiobutton" name="show_endtime" value="0" > No</li></ul></li>
  7. </div>

Possible reason? Maybe you can't have INPUTs in a list... not really sure if that's true.

End tag for element ... which is not open
Line 731; column 25: -
Code: [ Select ]
<div class="message">
<div class="quoteHeader">PHP:</div>
<div class="quotePHP">
<span style="color: #007700">while(</span><span style="color: #0000BB">$row&nbsp; </span><span style="color: #007700">=&nbsp; </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$result2</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">MYSQL_NUM</span><span style="color: #007700">))

<br>
<br>{
<br>
<br>&nbsp; &nbsp; &nbsp; </span><span style="color: #0000BB">$tsv</span><span style="color: #007700">[]&nbsp; &nbsp; =&nbsp; </span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"\t"</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">$row</span><span style="color: #007700">);

<br>
<br>&nbsp; &nbsp; &nbsp; </span><span style="color: #0000BB">$html</span><span style="color: #007700">[]&nbsp; =&nbsp; </span><span style="color: #DD0000">"&lt;tr&gt;&lt;td&nbsp; bgcolor=\"#EEEEEE\"&gt;"&nbsp; </span><span style="color: #007700">.</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"&lt;/td&gt;&lt;td&nbsp; bgcolor=\"#FFFFFF\"&gt;"</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">$row</span><span style="color: #007700">)&nbsp; .&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #DD0000">"&lt;/td&gt;&lt;/tr&gt;"</span><span style="color: #007700">;

<br>
<br>&nbsp; &nbsp; &nbsp; </span><span style="color: #0000BB">$htmm&nbsp; </span><span style="color: #007700">=&nbsp; </span><span style="color: #DD0000">"&lt;br&nbsp; /&gt;"&nbsp; </span><span style="color: #007700">.&nbsp; </span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"&lt;/td&gt;&lt;td&gt;"</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">$row</span><span style="color: #007700">)&nbsp; .</span><span style="color: #DD0000">"&lt;br&nbsp; /&gt;"</span><span style="color: #007700">;

<br>
<br>}&nbsp; </span></span>
</div>
  1. <div class="message">
  2. <div class="quoteHeader">PHP:</div>
  3. <div class="quotePHP">
  4. <span style="color: #007700">while(</span><span style="color: #0000BB">$row&nbsp; </span><span style="color: #007700">=&nbsp; </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$result2</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">MYSQL_NUM</span><span style="color: #007700">))
  5. <br>
  6. <br>{
  7. <br>
  8. <br>&nbsp; &nbsp; &nbsp; </span><span style="color: #0000BB">$tsv</span><span style="color: #007700">[]&nbsp; &nbsp; =&nbsp; </span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"\t"</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">$row</span><span style="color: #007700">);
  9. <br>
  10. <br>&nbsp; &nbsp; &nbsp; </span><span style="color: #0000BB">$html</span><span style="color: #007700">[]&nbsp; =&nbsp; </span><span style="color: #DD0000">"&lt;tr&gt;&lt;td&nbsp; bgcolor=\"#EEEEEE\"&gt;"&nbsp; </span><span style="color: #007700">.</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"&lt;/td&gt;&lt;td&nbsp; bgcolor=\"#FFFFFF\"&gt;"</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">$row</span><span style="color: #007700">)&nbsp; .&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #DD0000">"&lt;/td&gt;&lt;/tr&gt;"</span><span style="color: #007700">;
  11. <br>
  12. <br>&nbsp; &nbsp; &nbsp; </span><span style="color: #0000BB">$htmm&nbsp; </span><span style="color: #007700">=&nbsp; </span><span style="color: #DD0000">"&lt;br&nbsp; /&gt;"&nbsp; </span><span style="color: #007700">.&nbsp; </span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"&lt;/td&gt;&lt;td&gt;"</span><span style="color: #007700">,&nbsp; </span><span style="color: #0000BB">$row</span><span style="color: #007700">)&nbsp; .</span><span style="color: #DD0000">"&lt;br&nbsp; /&gt;"</span><span style="color: #007700">;
  13. <br>
  14. <br>}&nbsp; </span></span>
  15. </div>


I don't know of any possible solutions for that one...

http://www.ozzu.com/website-reviews/site-review-watch-anime-episodes-online-t82591.html

For some reason... on that page there is the following line of code on line 879.

Code: [ Select ]
<p></div>Thanks, but it has already been bookmarked about 70 times over 10 different sights, mostly del, stumbleupon, furl, technorati and a few others.</p>


1 error and 1 new error on this page.

The other one error I found is when making lists...

Code: [ Select ]
<ul>
<p>Those are all of the POSSIBLE solutions for those pages since they are automatically generated with those codes.</p>
<p>No, I didn't submit a lot of links to w3 validator... I got an add-on for my Firefox which is an SGML validator... the same validation device used by w3.validator.org</p>
<p></p>
<p>More errors to come <img src="images/smiles/icon_biggrin.gif" alt="Very Happy" border="0" /></p>
</ul>
  1. <ul>
  2. <p>Those are all of the POSSIBLE solutions for those pages since they are automatically generated with those codes.</p>
  3. <p>No, I didn't submit a lot of links to w3 validator... I got an add-on for my Firefox which is an SGML validator... the same validation device used by w3.validator.org</p>
  4. <p></p>
  5. <p>More errors to come <img src="images/smiles/icon_biggrin.gif" alt="Very Happy" border="0" /></p>
  6. </ul>


It obviously doesn't generate the <li>...</li> tags...

That brings up a validation error.

NOTE:

    Those are all of the POSSIBLE solutions for those pages since they are automatically generated with those codes.
    No, I didn't submit a lot of links to w3 validator... I got an add-on for my Firefox which is an SGML validator... the same validation device used by w3.validator.org
    All of the codes are found through out various pages and not on one page... I didn't post links to them.
    More errors to come :D
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9088
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

I just fixed some of these, some will take more work due to the nature of the programming.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Okay :) I was just pointing them out :)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 4 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.