473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

XHTML1.0 Strict Validation & Adds

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
5 2902
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Spartanicus | last post by:
I've been thinking about using a custom "stricter" local HTML 4.01 Strict DTD for the purpose of local validation. That way I wouldn't have to change my doctype, my documents would still adhere to...
41
by: CMAR | last post by:
What are the pluses and minuses of constructing and validating between XHTML Transitional vs. HTLM 4.01 Strict Thanks, CMA
10
by: mike | last post by:
regards: Where to find tag mapping-table of HTML translated to XHTML1.0 Any positive suggestion is welcome. thank you May goodness be with you all
3
by: __PPS__ | last post by:
Hello, I'm newbe to xml/dtd (and probably I don't use all the termins correctly). I'm writing an application that parses xhtml file with custom elements and splits it into 2 parts - valid xhtml1.0...
9
by: rbronson1976 | last post by:
Hello all, I have a very strange situation -- I have a page that validates (using http://validator.w3.org/) as "XHTML 1.0 Strict" just fine. This page uses this DOCTYPE: <!DOCTYPE html PUBLIC...
13
by: mark4asp | last post by:
When I write a url in xhtml, with an unencoded ampersand, like this: http://localhost:2063/Client/ViewReport.aspx?Ref=58&Type=SUMMARY the xhtml sytax checker correctly indicates an error,...
8
by: The KwikOne | last post by:
Since to have a page validate (HTML and XHTML) you should have your URL parameters separated by the appropriate separator. However, if an ampersand is used it needs to be expressed as &amp; (example:...
2
by: Bruno Schneider | last post by:
I've seen this page, that seems invalid to me. Doctype is incomplete and it does not have a <bodytag. However, W3C validator validates it as HTML 4.01 strict, even when I force the DOCTYPE. I think...
92
by: Erwin Moller | last post by:
Hi group, I encoutered page validation error, but I don't know a way around. The page has the following doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.