Results 1 to 8 of 8

Thread: Can't Validate my Page

  1. #1
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default Can't Validate my Page

    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
    - Mike

  2. #2
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Last edited by ItsMeOnly; 08-18-2006 at 04:00 PM.

  3. #3
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    That all? Okay, I'll try to work it out some how.. Thanks
    - Mike

  4. #4
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Last edited by Twey; 08-18-2006 at 07:36 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    (Shutters).... Oh.. Well, now that my life is ruined..
    - Mike

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ItsMeOnly
    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?


    Quote Originally Posted by Twey
    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 in WCAG), and the target attribute was removed because it's primarily a frame-related feature (and frames do not feature in Strict HTML).

    Mike

  8. #8
    Join Date
    Aug 2006
    Posts
    239
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mwinter
    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...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •