Unhelpful HTML validation

O

OccasionalFlyer

I have a web page that might or might not have an error in it close
to the top. It's based on a page that does not have any problems,
with a few static text changes. I think that I have added something
that I cannot see that is causing the page to break in the special
server it has to run on. I have tried using tools, like the debugging
tools in Chrome and Firebug and cannot see anything wrong, but I'm
thinking thtat there must be something wrong. I used the w3c
validator and that gave me over 3500 errors. It complains about all
my JavaScript, among other things. Plus, I have a special set of tags
that are interpreted by the server this has to run on. I need another
way to find the problem. If I try to display my page simply as a
file, in say, FF, it comes up fine. The program that needs to read
the page, however, seems unable to handle the page even though it says
it imported and saved it. Any suggestion for other tools? I can't
give you a URL. It would be in the middle of an application and you'd
have to create a user account to get to it.

If I look at the page source, I see a few lines of HEAD and body
start and end tag. That suggests to me that the tool I'm using is
punting, and not trying to show my page at all. I did see an error I
made before because of where my cursor was, but I fixed that. I don't
know how to find what's amiss in this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" />
<title>APS Online Application | Azusa Pacific University</title>
<link rel="stylesheet" type="text/css" media="screen,projection"
href="https://www.apu.edu/external/crm/caps/caps-screen.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" media="screen,projection"
href="https://www.apu.edu/external/crm/production/caps/caps-ie6-
screen.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="screen,projection"
href="https://www.apu.edu/external/crm/caps/caps-ie7-screen.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" media="print" href="https://
www.apu.edu/external/crm/caps/caps-print.css" />
<script type="text/javascript" src="https://www.apu.edu/external/crm/
shared/jquery-1.2.6.js"></script>
<script type="text/javascript" src="https://www.apu.edu/external/crm/
caps/caps-app.js"></script>
<script type="text/javascript">
// Server date
var serverdate = '<pstag:currentDate format="YYYY-MM-DD" />';
var serveryear = serverdate.substr(0,4);
</script>
<!-- Protocol changed to HTTPS because of SSL issues in IE8. The
version
with only HTTP is the version supplied by UR. The script block
is
added for SSD-245 -->
<script type="text/javascript" src="https://www.apu.edu/includes/
omniture/s_code.js"></script>


</head>
<body id="page-aboutme" onLoad="executeOmniture()" >
<div id="page">
<div id="header">
<img id="masthead" src="https://www.apu.edu/external/crm/caps/caps-
header.jpg" alt="Azusa Pacific University" />
<h1>APS Online Application</h1>
<div id="welcome">Welcome, <span class="applicant-
name"><pstag:profile value="Individuals.People.First Name" /></span>!
| <a href="https://www.apu.edu/external/crm/caps/caps-help.html"
target="_blank">Help</a></div>
</div><!-- end #header -->
<ul id="steps">
<li class="active">
<span class="numeral">1</span><span class="separator">: </
span><span class="break"></span>
About Me
</li>
<li>
<span class="numeral">2</span><span class="separator">: </
span><span class="break"></span>
My Education
</li>
<li>
<span class="numeral">3</span><span class="separator">: </
span><span class="break"></span>
My Supporting Documents
</li>
<li>
<span class="numeral">4</span><span class="separator">: </
span><span class="break"></span>
Review and Submit
</li>
</ul><!-- end #steps -->
<br style="clear: left;" />
<div id="message">Warning: You must turn on JavaScript in your web
browser to continue.</div>
<script type="text/
javascript">document.getElementById("message").innerHTML = "Please
wait...";</script>
<div id="main">
There's much more but I am supposing the error, whatever it is, is up
here at the top. Thanks for any suggestions for validation.

Ken
 
D

Doug Miller

I have a web page that might or might not have an error in it close
to the top. It's based on a page that does not have any problems,
with a few static text changes. I think that I have added something
that I cannot see that is causing the page to break in the special
server it has to run on. I have tried using tools, like the debugging
tools in Chrome and Firebug and cannot see anything wrong, but I'm
thinking thtat there must be something wrong. I used the w3c
validator and that gave me over 3500 errors.

Fix them and come back if you still have problems.
It complains about all
my JavaScript, among other things.

"Complains about" is rather vague. What, specifically, does it say is the problem?
 
J

Jonathan N. Little

Doug said:
Fix them and come back if you still have problems.


"Complains about" is rather vague. What, specifically, does it say is the problem?

Hard to say with out see it, but to take a WAG is he is using inline
JavaScript in an XHTML document without properly marked CDATA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top