LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-28-2006, 04:07 PM   #1
iceportal
Member
 
Registered: Sep 2006
Posts: 36

Rep: Reputation: 15
Wrote a 100% w3c-compliant website - why won't it show up in IE, Links, Lynx?


I recently have been working on the site:

http://bh.gridrunners.com/
(also available at http://www.gridrunners.com/black_hat/)

And I've verified that every single part of it is 100% standards compliant, from the HTML output to the CSS. This has been checked against the w3c standards.

It shows up perfectly in Firefox (and all other browsers in the netscape family) and in Epiphany.

It shows up in Konqueror, but the <hr> tags are on the left side instead of centered. (I can live with that.)

But in Internet Explorer, Links, Lynx, Dillo, and Opera, the page doesn't display at all.

(Well, Opera shows corrupted HTML, and then on various pages it shows either broken or not at all, save for "contacts" and "404")

Any idea why this might be?

I've checked the source, checked the CSS, checked the output HTML... It's all 100% W3C-Standards-Compliant.

I've even tried right-click->view source... And it shows the source code just perfect!

But for some reason nothing works!

I've even hosted this on my own local Apache install, to see if it was the server, and it still didn't work!

Does anyone have any clue as to why this would happen?
 
Old 09-28-2006, 04:20 PM   #2
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
Remove the XML declaration; IE and Lynx don't support it.
 
Old 09-28-2006, 04:21 PM   #3
senyahnoj
Member
 
Registered: Jul 2004
Location: Gloucestershire, UK
Distribution: Ubuntu, Debian & Gentoo
Posts: 74

Rep: Reputation: 16
I think you'll find <script> needs a closing tag - try replacing

Code:
<script src="scripts.js" type="text/javascript"/>
with

Code:
<script src="scripts.js" type="text/javascript"></script>
Browsers ought to ignore the XML declaration tag (although it's not entirely necessary on a webpage anyway).

I've done a test and this certainly works on lynx, dillo and links...

Last edited by senyahnoj; 09-28-2006 at 04:49 PM.
 
Old 09-28-2006, 04:39 PM   #4
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
Links gives this error:

Code:
Error 400 - Bad Request
also, google returns this on a 400 error:

http://www.checkupdown.com/status/E400.html

i'm not an html guru, so i don't know if this helps

Last edited by easuter; 09-28-2006 at 04:41 PM.
 
Old 09-28-2006, 04:48 PM   #5
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
Code:
<script src="scripts.js" type="text/javascript"></script>
does it for me too
 
Old 09-28-2006, 05:48 PM   #6
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
ie does have some problems with standards, i have a link around here somewhere....
 
Old 09-28-2006, 06:09 PM   #7
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
I had the same problems recently and it was due to javascript problems. Neither Internet Explorer nor Firefox were able to display my pages, and everything I could see was blank pages.
I am also using XHTML sctrict and I kept my XML declaration which is fully supported by Lynx(and the like), Opera, Firefox, Mozilla, Internet Explorer.
Add a space between the script tag :
<script src="scripts.js" type="text/javascript"> </script>

You can also add an insecable space using the xml entity  :
<script src="scripts.js" type="text/javascript"> </script>

You do not need to remove the xml declaration.
 
Old 09-28-2006, 09:36 PM   #8
iceportal
Member
 
Registered: Sep 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Can't remove <?xml version="1.0" encoding="utf-8"?> because if I do then it's no longer 100% XHTML standards compliant.

However, changing <script src="scripts.js" type="text/javascript" /> to <script src="scripts.js" type="text/javascript"></script> fixed it for lynx... I'll check with the others.

Thanks for all the help!!
 
Old 09-28-2006, 09:47 PM   #9
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
you may very well have other problems with javascript, like others have mentioned, but i still will share this link.. its good stuff to know if you are trying to work well on ie with standards compliant code.
 
Old 09-28-2006, 09:50 PM   #10
iceportal
Member
 
Registered: Sep 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Okay, checked with Dillo and Opera: it works!

Thanks everyone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why my snort show icmp 100% only headmaster Linux - Security 3 12-10-2005 11:13 AM
Links/Lynx Browser - Fonts Question rvijay Linux - Software 1 08-09-2005 03:01 AM
Lynx browser, alternate mail client for sending comments to website authors SharpyWarpy Linux - Software 2 08-04-2005 10:21 AM
links, lynx, w3m?? numb Slackware 18 04-06-2005 06:07 AM
Unable to get on line using pppd and lynx or links bhooder Linux - Newbie 1 02-25-2004 10:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration