![]() |
| Home | Demo | Services | Features | Help | User Forum | Blog | About | |
|
#1
|
|||
|
|||
|
It would be great to have StatCounter Code that complies W3 HTML 4.01 Strict.
I could not get the code validated at http://validator.w3.org/ Thanks Ward |
|
#2
|
||||
|
||||
|
I'll second that request!
At the moment the "compliant" codes is only compliant with Transitional doctypes and making them compliant with Strict would still make them valid for Transitional. The Strict compliant code could then be the default and there would be no need for more than one optional code, for XHTML Strict you add the slash to the img tag and a div inside the noscript part. But for now, you can make the code valid if you delete manually the non valid parts (in red) as follows. Quote:
Last edited by Arne; 08-01-2006 at 12:44 PM. |
|
#3
|
||||
|
||||
|
Use the XHTML option and it should be OK.
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
Quote:
But calling it strict is not going to help when you use xhtml transitional either. How about offering a choice of dtd's and generating the proper code as a function of that? Sure there are only 2 actual flavors in the end based on that. Oh, do you know if there's any javascript way of detecting the doctype of the current page?
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#6
|
||||
|
||||
|
Quote:
BTW, there is an error in the page where you choose the code version. The check boxes should be radio buttons, since with check boxes you can check for several versions and then don't know what you get. That happends to me, testing to generate the text counter for html only and javascript counters. Quote:
|
|
#7
|
||||
|
||||
|
Some of the wizard options can be combined, like w3c valid and xhtml and secure server. Some dont make much sense combined.
I'd like to be able to autodetect the dtd used in order to automate for instance the selection of SC code to use. In php too, except remote php scripts can't do that much probably. Just a vague notion I'm tossing about in my head, no substance yet, probably never will have any either
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#8
|
||||
|
||||
|
Quote:
Quote:
Well, a button in the Favorites with a Javascript string that shows the doctype when you click on it, I'll guess. But I don't know how the string should be written, sorry. But maybee this Web Accessibility Toolbar is of interest? There is a lot of tools with it, and one is the "Doc Info" button that among others have the "Show DOCTYPE" option that displays (in an alert) the DOCTYPE of the current HTML document. I have not test it and therefore don't know anything about it, but I belive it's for IE only. |
|
#9
|
||||
|
||||
|
No, not in the browser. From inside the webpage, so I can program things there.
Yes, I'm tossing myself about again PS: Something about DomDocument_doctype() ................ if I can figure it out at all. I think that's just php though which may be ok .....
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. Last edited by webado; 08-01-2006 at 05:04 PM. |
|
#10
|
|||
|
|||
|
Thanks to all who wrote,
I used the XHTML code. That works perfect, if you put the code in de <body> and not above the <body> like the instruction says. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|