Page 1 of 1

anomaly

PostPosted: Tue Aug 21, 2012 10:34 am
by roedygr
Consider the page at http://mindprod.com/quote/patriotism.html

HTML Validator seems to think it is fine.

W3C seems to think it has 5 errors.

I don't understand the W3C errors. It is as though they have stricter rules on nesting tags.

Re: anomaly

PostPosted: Wed Aug 22, 2012 9:17 am
by Albert Wiersch
Hi Roedy,

I don't think the W3C validator likes the "</" part of the script that's not "</script>".

Try changing this:
Code: Select all
<script type="text/javascript">if (document.URL.indexOf("file:")!=0){document.writeln("<div class=\"g-plusone\"></div>");}</script>


To this to split up the "</" part of the string:
Code: Select all
<script type="text/javascript">if (document.URL.indexOf("file:")!=0){document.writeln("<div class=\"g-plusone\"><"+"/div>");}</script>

Re: anomaly

PostPosted: Mon Aug 27, 2012 1:26 pm
by roedygr
You were right. That kludge mollified W3