Log in

View Full Version : Can't Validate my Page



mburt
08-18-2006, 02:54 PM
Hi,

I've been trying really hard to validate my page, with 4.0 strict, 3.2 and 2.0, but it is still "not a valid document".

This is the URL:

http://www40.brinkster.com/mburt

Any help appreciated :)

ItsMeOnly
08-18-2006, 03:53 PM
well, it's too advanced for 3.2 and 2.0 and too backwards for 4.0 strict

get rid of element attributes on behalf of stylesheets or inline styles.
<script type="text/javascript"> instead of <script language="javascript">
also I doubt that iframe can receive any event, since it is itself a viewport (i..e. contains html body)
also: none of "stricts" supports iframes and targets, you need to javascript relocation :)

mburt
08-18-2006, 04:10 PM
That all? Okay, I'll try to work it out some how.. Thanks

ItsMeOnly
08-18-2006, 04:17 PM
that's it, believe or not- my page, being short of JS critical mass, full of unnecesarry gizmos and quirks is short of being xhtml 1.1 strict- I cannot switch, because of targets and some inline styling. many pages are in deed xhtml 1.0 strict, but I keep transitional just for IE.

Twey
08-18-2006, 04:21 PM
Firstly, use a modern DOCTYPE. :)
The language/type problems are pretty self-explanatory.

there is no attribute "ALIGN" .Also pretty obvious. Use text-align or margin.

there is no attribute "TARGET" .This should be done using client-side scripting, according to the W3C. As such, the TARGET attribute has been removed from all strict DTDs.
document type does not allow element "BR" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag .Just like it says. It needs to be inside a text element.
there is no attribute "SRC" .All the iframe attribute problems are due to:
element "IFRAME" undefined .... which is the validator telling you not to use an iframe.

mburt
08-18-2006, 04:33 PM
(Shutters).... Oh.. Well, now that my life is ruined.. :)

mwinter
08-18-2006, 07:28 PM
my page ... is short of being xhtml 1.1 strict

Considering that XHTML 1.1 should not be served as HTML (Appendix C XHTML only applies to XHTML 1.0) and MSIE, amongst other browsers, doesn't support XHTML, serving it to user agents should be last thing on anyone's mind.



... but I keep transitional just for IE.

What bearing does a Transitional document type have on IE?




This should be done using client-side scripting, according to the W3C. As such, the TARGET attribute has been removed from all strict DTDs.

No, it shouldn't be done at all (for example, Checkpoint 10.1 (http://www.w3.org/TR/WAI-WEBCONTENT/wai-pageauth.html#tech-avoid-pop-ups) in WCAG (http://www.w3.org/TR/WAI-WEBCONTENT/)), and the target attribute was removed because it's primarily a frame-related feature (and frames do not feature in Strict HTML).

Mike

ItsMeOnly
08-18-2006, 11:23 PM
What bearing does a Transitional document type have on IE?

For some reason when I try 1.0 strict- the "borders" of "windows" and "scrolled windows" are rendered incorrectly- don't ask me why- it's IE we're talking about.

Besides, I don't need to do that stupid "first line comment" workaround...