anomaly

For technical support for all editions of CSE HTML Validator. Includes bug reports.

anomaly

Postby roedygr » Tue Aug 21, 2012 10:34 am

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.
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 242
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada

Re: anomaly

Postby Albert Wiersch » Wed Aug 22, 2012 9:17 am

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>
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: anomaly

Postby roedygr » Mon Aug 27, 2012 1:26 pm

You were right. That kludge mollified W3
User avatar
roedygr
Rank V - Professional
Rank V - Professional
 
Posts: 242
Joined: Fri Feb 17, 2006 6:22 am
Location: Victoria BC Canada


Return to CSE Tech Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest