StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > StatCounter.com > Bugs

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 06-13-2005, 06:05 PM
Katherine
Guest
 
Posts: n/a
Default W3C Compliant oiption has one error...

Namely this...

Line 233, column 9: document type does not allow element "NOSCRIPT" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

<noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http:

Encoding is iso-8859-1

My sites doctype is HTML 4.01 Transitional
  #2  
Old 06-13-2005, 06:12 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

Hmmm... use the regular version, that works and it validates too as transitional with the loose designation.

Or else check that you didn't break the code over any lines.
Quote:
W3C Compliant
Maintaining correct line breaks in your code are crucial if you want to use W3C valid HTML. If you are just worried about your counter working all the time then don't tick this box.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #3  
Old 06-13-2005, 06:24 PM
Katherine
Guest
 
Posts: n/a
Default

DOH, i forgot im using Transitional this time around and not strict.

"noscript" tags cannot be inside formatting tags of ANY kind.

I simply moved the entire code down to the very bottom of the code page and stuck it just before </body> so there was no formatting anywhere near it. That seems to have fixed it
  #4  
Old 06-13-2005, 06:26 PM
Katherine
Guest
 
Posts: n/a
Default

Ohhhh, and to explain it better...the code...

[/i]</div>

<script type="text/javascript" language="javascript">
<!--
var sc_project=#######;
var sc_partition=#;
var sc_security="#######";
//-->
</script>
<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script>
<noscript></noscript>

</body>
</html>

No formatting tags opening and closing around the entire script fixes it Ya gotta love Tim Berners-Lee and the W3C folks...sitting there thinking of ways to give misery to folks building webpages.
  #5  
Old 06-13-2005, 06:40 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,173
Default

There is nothing to format in the Statcounter code. At most all you can do is position it with positioning tags.

In any case, for transitional the ordinary code works, as should the w3c version.

For the XHTML version there are other considerations.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:35 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.