By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,787 Members | 1,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,787 IT Pros & Developers. It's quick & easy.

XHTML1.0 Strict Validation & Adds

P: n/a
I'm creating a valid XHTML 1.0 Strict site. I've already created valid
test page. The problem is that server which my site is placed on, after
</html> adds this code:

<script language='javascript1.2'
src='http://ww6.piwko.pl/stat1.js'></script>
<script language='javascript1.2'
src='http://stat.piwko.pl/stat.js?id=legionowo.piwko.pl'></script>

This code is not valid but it is olny a visit counter (I don't know that
is the right english name). It's hardly to persuade admins to change
this code. Can I recognize that page as a valid XHTML if "my side" of
code is valid?
If somebody wants to see it: http://www.legionowo.piwko.pl/test/
The last thing I want to do is chaging a server.
Sorry for my english.
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
kebe wrote:
I'm creating a valid XHTML 1.0 Strict site. I've already created valid
test page. The problem is that server which my site is placed on, after
</html> adds this code:

<script language='javascript1.2'
src='http://ww6.piwko.pl/stat1.js'></script>
<script language='javascript1.2'
src='http://stat.piwko.pl/stat.js?id=legionowo.piwko.pl'></script>

This code is not valid but it is olny a visit counter (I don't know that
is the right english name). It's hardly to persuade admins to change
this code. Can I recognize that page as a valid XHTML if "my side" of
code is valid?
IMO No. Because it's not.
If somebody wants to see it: http://www.legionowo.piwko.pl/test/
The last thing I want to do is chaging a server.
You'll have to change your server.

I had a very similar problem. I put a comment in the code that it
validated as xhtml *before* being uploaded to my host. With my host's
code I couldn't get it validate as any type of html. So I changed host.

Paul Sorry for my english.

Jul 20 '05 #2

P: n/a
DU
kebe wrote:
I'm creating a valid XHTML 1.0 Strict site. I've already created valid
test page. The problem is that server which my site is placed on, after
</html> adds this code:

<script language='javascript1.2'
src='http://ww6.piwko.pl/stat1.js'></script>
<script language='javascript1.2'
src='http://stat.piwko.pl/stat.js?id=legionowo.piwko.pl'></script>

This code is not valid but it is olny a visit counter (I don't know that
is the right english name). It's hardly to persuade admins to change
this code. Can I recognize that page as a valid XHTML if "my side" of
code is valid?
Nope. And you won't be able to validate your CSS if your XHTML markup
code is not valid.
If somebody wants to see it: http://www.legionowo.piwko.pl/test/
The last thing I want to do is chaging a server.
Sorry for my english.


I agree with Paul. You can tell them you'll be leaving if they don't at
least include valid markup code into your page. type has superseded
language and is both backward and forward compatible. You're not asking
for much here.

DU
Jul 20 '05 #3

P: n/a
Paul wrote:
You'll have to change your server.


No! I did it... hehe. That host is offering PHP service.
My page use it. I've simply added exit(); at the end of the script. Now
script terminate after </html> and site is without extras!
Jul 20 '05 #4

P: n/a
kebe wrote:
Paul wrote:
You'll have to change your server.

No! I did it... hehe. That host is offering PHP service.
My page use it. I've simply added exit(); at the end of the script. Now
script terminate after </html> and site is without extras!


Well done. I love the feeling of successfully implementing a horrific
hack like this that gets around some idiot-imposed restriction.

--
Mark.
Jul 20 '05 #5

P: n/a
kebe <ke********@TOklub.chip.pl> wrote in message news:<40********@news.vogel.pl>...
I'm creating a valid XHTML 1.0 Strict site. I've already created valid
test page. The problem is that server which my site is placed on, after
</html> adds this code:


So it's not valid XHTML (or even well-formed XML, which is worse).
Sorry.

A similar problem arises when you embed adverts on the page from an
external advert service. Apart from the bad JavaScript, un-encoded
ampersands, broken image links, dodgy ActiveX's and general rubbish
they insist on feeding you, there's now (X)HTML well-formedness to
worry about.
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.