Doctype-Angabe => Keine Browserausgabe



  • - Erübrigt -

    MfG SideWinder

    [ Dieser Beitrag wurde am 08.07.2003 um 15:57 Uhr von SideWinder editiert. ]



  • Cool seid der ini_set-Angabe wird das Dokument auch angezeigt wenn ich einen Doctype angebe :).

    Eine Frage noch: Warum darf ich als method nur 'get' oder 'post' angeben aber nicht 'POST'? Dachte einige Browser unterstützen sogar nur die Großschreibung?

    Danke Shade!

    MfG SideWinder



  • Doch noch Probleme. Ich bekomme meine Page einfach nicht XHTML 1.1 Strict Valid :(.

    Seht euch das derzeitige Ergebnis mal an:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.sidewindershome.net%2Fnew%2Findex.php

    Ich verstehe gar nicht WARUM diese Fehler vorhanden sind!

    MfG SideWinder



  • Es scheint fast so, als ob <meta> und <link> tags keine /> benötigen 😕
    Zumindest sind diese Fehler weg, wenn man den Slash weglässt



  • LOL irgendwie haben die das mit dem Standard beim Standard-Konsortium noch nicht begriffen :D.

    Also auf der einen Seite: Ja also bei XHTML ist es jetzt immer Pflicht auch bei Tags die normalerweise keinen Endtag haben einen zu setzen. Da </br> oft zu Problem führt soll man <br /> stattdessen verwenden. Das muss immer geschehen damit wir XML-Konform sind.

    Auf der anderen Seite: Scheiss auf XML, bei meta, link, etc. dürft ihr weiterhin keine verwenden.

    😕

    MfG SideWinder


  • Mod

    Hab meinen validator drueber laufen lassen:

    1: <!doctype html public "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    -------|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    [CSE] Warning number 1 in line 1:2:
    [65] This document's DOCTYPE is not a recognized DOCTYPE and
    may not be valid. Note that DOCTYPEs are treated as being
    case sensitive. For more information and the list of
    recognized DOCTYPEs, please visit http://www.htmlvalidator.com/htmlval/v50/docs/configuration.
    html#flag65

    2:

    3: <html>
    -------||||

    [CSE] Warning number 2 in line 3:2:
    XHTML documents should normally contain the "xmlns"
    attribute in the "html" tag. For example, use
    xmlns="http://www.w3.org/1999/xhtml" with the "html"
    element.

    4:
    5: <head>
    6:

    7: <title>.: SideWinders Home :.</title>
    -----------------||||||||||||||||||||||

    [CSE] Message number 1 for the tag beginning in line 7:12:
    [8] This document's title contains only 4 words. It may be
    inadequate for search engine purposes. A good title is
    important to your search engine rankings and listings. AI
    Internet Solutions recommends a title that is 5-15 words in
    length and that contains a relevant and descriptive phrase.

    8:

    9: <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    ---------------------------------------------------|||||||||||||||||||||||||||||

    [CSE] Message number 2 for the tag beginning in line 9:46:
    [98] Unless another character encoding is required, it is
    encouraged that the character set "us-ascii" be used and the
    name "us-ascii" be used to specify this character set. This
    is the most commonly used character set on the Internet.

    10: <meta http-equiv="content-style-type" content="text/css" />
    11:
    12: <meta name="author" content="SideWinder" />

    13: <meta name="description" content="Private Website von SideWinder - Programmieren, Counterstrike und Treffpunkt für die 1EHD (2DHD)" />
    --------------------------------------------------------------------------------------------------------------------------|

    [CSE] Warning number 3 in line 13:117:
    High ASCII characters were found. You may want to replace
    high ASCII characters with character entities, but this is
    not technically necessary.

    13: <meta name="description" content="Private Website von SideWinder - Programmieren, Counterstrike und Treffpunkt für die 1EHD (2DHD)" />
    --------------------------------------------||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    [CSE] Message number 3 for the tag beginning in line 13:39:
    [107] The web page description contains only 96 characters.
    AI Internet Solutions recommends a minimum of half (50%) of
    the recommended maximum length of 200 characters. Consider
    increasing the description's length (be more descriptive).

    14: <meta name="keywords" content="SideWinder, Programmieren, Programming, C, C++, Pascal, Turbo Pascal, PHP, Counterstrike, Counter-Strike, CS, cstrike, Configs, HTL, Leonding, 1EHD, 2DHD" />
    -----------------------------------------||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||

    [CSE] Message number 4 for the tag beginning in line 14:36:
    [107] The keywords contain only 153 characters. AI Internet
    Solutions recommends a minimum of 100 characters. The
    recommended maximum is 800 characters. Consider increasing
    the number of keywords.

    15: <meta name="robots" content="index,nofollow" />
    16:
    17: <link rel="stylesheet" href="./sidewinder.css" title="SideWinder" type="text/css" media="screen" />
    18:
    19: </head>
    20:
    21: <body>
    22:
    23: <div id="idhead">
    24:
    25: sidewinders home
    26:
    27: </div>
    28:
    29: <div id="idmain">
    30:
    31: <div id="idmenu">
    32:
    33: <a href="./index.php?action=1&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: home :.</a><br />
    34: <br />
    35: <a href="./index.php?action=2&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: proggn :.</a><br />
    36: <a href="./index.php?action=3&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: cstrike :.</a><br />
    37: <br />
    38: <a href="./index.php?action=4&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: school :.</a><br />
    39: <a href="./index.php?action=5&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: fun :.</a><br />
    40: <br />
    41: <a href="./index.php?action=6&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: links :.</a><br />
    42: <a href="./index.php?action=7&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: guestbook :.</a><br />
    43: <a href="./index.php?action=8&PHPSESSID=a5c64553fa1320942cf5985d82356890">.: contact :.</a>
    44:
    45: </div>
    46:
    47: <div id="idlogin">

    48: <p class=text>
    ---------------------------------------||||

    [CSE] Error number 1 in line 48:34:
    The attribute value "text" for the "class" attribute was not
    enclosed in single or double quotation marks when it must
    be. In HTML 4.01, attribute values containing characters
    other than A-Z, a-z, 0-9, hyphens, periods, underscores, and
    colons must be quoted. In XHTML/XML, all attribute values
    must be quoted. Quotes are recommended even if they are not
    required.

    49: <form action="./user_login.php" method="POST"><input type="hidden" name="PHPSESSID" value="a5c64553fa1320942cf5985d82356890" />
    -------------------||||

    [CSE] Warning number 4 in line 49:14:
    [56] The "form" tag is contained in a "p" tag that was
    opened in line 48. This is against the HTML specification
    and may cause problems with some browsers.

    49: <form action="./user_login.php" method="POST"><input type="hidden" name="PHPSESSID" value="a5c64553fa1320942cf5985d82356890" />
    ----------------------------------------------------------||||

    [CSE] Error number 2 in line 49:53:
    In XHTML, enumerated attribute values are case sensitive and
    must be lowercase. Instead of "POST", use "post". This is in
    contrast to HTML, where values are normally
    case-insensitive.

    50: <table>
    -------------------|||||

    [CSE] Warning number 5 in line 50:14:
    [56] The "table" tag is contained in a "p" tag that was
    opened in line 48. This is against the HTML specification
    and may cause problems with some browsers.

    50: <table>
    -------------------|||||

    [CSE] Message number 5 for the tag beginning in line 50:14:
    [46] Consider using a "summary" attribute with this "table"
    tag to provide a summary of the table's purpose and
    structure for user agents rendering to non-visual media such
    as speech and Braille. However, this attribute is not widely
    supported.

    50: <table>
    -------------------|||||

    [CSE] Message number 6 for the tag beginning in line 50:14:
    [54] Consider using the "width" attribute with the "table"
    element. This is considered to be good style and can cause
    the table and page to render faster.

    50: <table>
    -------------------|||||

    [CSE] Message number 7 for the tag beginning in line 50:14:
    [69] If this is a data table then row and column headers
    must be used. See section 1194.22 (g).

    50: <table>
    -------------------|||||

    [CSE] Message number 8 for the tag beginning in line 50:14:
    [71] If this is a data table then markup must be used to
    associate data cells and header cells that have two or more
    logical levels of row or column headers. For example, use
    "thead", "tfoot", and "tbody" to group rows and "col" and
    "colgroup" to group columns. See section 1194.22 (h).

    50: <table>
    -------------------|||||

    [CSE] Message number 9 for the tag beginning in line 50:14:
    [5] The "table" element is an official HTML 4.01/XHTML
    element but may not be supported by older or nongraphical
    browsers. Furthermore, nongraphical browsers that do support
    tables may not support them the way that you expect.
    However, most browsers used today should support this
    element.

    51: <tr>
    52: <td>Username:</td>
    53: <td><input name="username" type="text" size="10" maxlength="20" /></td>
    54: </tr>
    55: <tr>
    56: <td>Passwort:</td>
    57: <td><input name="passwort" type="password" size="10" maxlength="20" /></td>
    58: </tr>
    59: <tr>
    60: <td colspan="2"><input name="submit" type="submit" value=".: Login :." /></td>
    61: </tr>

    62: </table>
    --------------------|||||

    [CSE] Message number 10 for the tag beginning in line 62:15:
    [44] Consider using a "caption" element to describe the
    nature of this table. Use this element immediately after the
    "table" start tag.

    63: </form>
    64: </p>

    65: <p class=text>
    ---------------------------||||

    [CSE] Error number 3 in line 65:22:
    The attribute value "text" for the "class" attribute was not
    enclosed in single or double quotation marks when it must
    be. In HTML 4.01, attribute values containing characters
    other than A-Z, a-z, 0-9, hyphens, periods, underscores, and
    colons must be quoted. In XHTML/XML, all attribute values
    must be quoted. Quotes are recommended even if they are not
    required.

    66: <form action="./register.php" method="POST"><input type="hidden" name="PHPSESSID" value="a5c64553fa1320942cf5985d82356890" />
    -------------------||||

    [CSE] Warning number 6 in line 66:14:
    [56] The "form" tag is contained in a "p" tag that was
    opened in line 65. This is against the HTML specification
    and may cause problems with some browsers.

    66: <form action="./register.php" method="POST"><input type="hidden" name="PHPSESSID" value="a5c64553fa1320942cf5985d82356890" />
    --------------------------------------------------------||||

    [CSE] Error number 4 in line 66:51:
    In XHTML, enumerated attribute values are case sensitive and
    must be lowercase. Instead of "POST", use "post". This is in
    contrast to HTML, where values are normally
    case-insensitive.

    67: <table>
    -------------------|||||

    [CSE] Warning number 7 in line 67:14:
    [56] The "table" tag is contained in a "p" tag that was
    opened in line 65. This is against the HTML specification
    and may cause problems with some browsers.

    67: <table>
    -------------------|||||

    [CSE] Message number 11 for the tag beginning in line 67:14:
    [69] If this is a data table then row and column headers
    must be used. See section 1194.22 (g).

    67: <table>
    -------------------|||||

    [CSE] Message number 12 for the tag beginning in line 67:14:
    [54] Consider using the "width" attribute with the "table"
    element. This is considered to be good style and can cause
    the table and page to render faster.

    67: <table>
    -------------------|||||

    [CSE] Message number 13 for the tag beginning in line 67:14:
    [71] If this is a data table then markup must be used to
    associate data cells and header cells that have two or more
    logical levels of row or column headers. For example, use
    "thead", "tfoot", and "tbody" to group rows and "col" and
    "colgroup" to group columns. See section 1194.22 (h).

    67: <table>
    -------------------|||||

    [CSE] Message number 14 for the tag beginning in line 67:14:
    [46] Consider using a "summary" attribute with this "table"
    tag to provide a summary of the table's purpose and
    structure for user agents rendering to non-visual media such
    as speech and Braille. However, this attribute is not widely
    supported.

    68: <tr>
    69: <td>
    70: <input name="Registrieren" type="submit" value=".: Registrieren :." />
    71: </td>
    72: </tr>

    73: </table>
    --------------------|||||

    [CSE] Message number 15 for the tag beginning in line 73:15:
    [44] Consider using a "caption" element to describe the
    nature of this table. Use this element immediately after the
    "table" start tag.

    74: </form>
    75: </p>
    76:
    77: </div>
    78:
    79: <div id="idtext">
    80:
    81:
    82: </div>
    83:
    84: </div>
    85:
    86: <div id="idcopyright">
    87:
    88: Copyright 2003, SideWinder // Geladener User: 
    89: None
    90: </div>
    91:
    92: </body>
    93:
    94: </html>

    [CSE] Comment number 1:
    [86] If you're concerned about top search engine rankings,
    visit http://www.htmlvalidator.com/seo.html

    [CSE] Comment number 2:
    You can disable all the error messages for improperly quoted
    attribute values by having HTML Validator ignore and
    disregard the quotation mark requirements for attribute
    values. This option is in CSE HTML Validator's Validator
    Engine Options. However, it is recommended that you leave
    these error messages enabled and that you properly enclose
    attribute values in quotation marks.

    [CSE] Comment number 3:
    You may want to turn off high ASCII character checking. It
    is normally not technically necessary to not use high ASCII
    characters in your documents. Furthermore, it is a common
    misconception that you MUST use character entities instead
    of high ASCII characters in HTML documents. It is
    technically acceptable to use high ASCII characters instead
    of their equivalent character entities if your editor allows
    it. This option is in CSE HTML Validator's Validator Engine
    Options.

    [CSE] Comment number 4:
    Possibly misspelled words (4, 4 unique): Counterstrike (1x),
    cstrike (1x), guestbook (1x), proggn (1x). Complete list.

    [CSE] Comment number 5:
    [37] XHTML document detected.

    [CSE] Comment number 6:
    [24] The XHTML recommendation strongly encourages that an
    XML declaration be used as the first line (line 1) of every
    XHTML document. For example, for XHTML and WML documents,
    something similar to <?xml version="1.0" encoding="UTF-8"?>
    or simply <?xml version="1.0"?> should be the first line. If
    you are using HTML Validator's integrated editor, then you
    can add this from the Tags menu and/or from the Tag
    Inserter. However, in practice, correctly using an XML
    declaration may cause problems, such as triggering Internet
    Explorer 6's "quirks" mode (which causes non-standards
    compliant rendering). Because of this, you may not want to
    use an XML declaration. If you don't, then you should
    specify the character encoding in the "head" section with a
    meta tag such as <meta http-equiv="Content-Type"
    content="text/html; charset=us-ascii" />

    [CSE] Comment number 7:
    [15] An ICRA label (a rating "meta" tag) was not found in
    the "head" section of this document. Browsers that are
    enabled with this rating system may not display documents
    that have not been labelled. If you have labelled this
    document by rating the section (directory) in which it is
    found, or if your site is a personal web space on a large
    Internet Service Provider, it is still recommended that you
    include the rating "meta" tag on all of your pages for
    performance reasons. For more information, please visit http://www.icra.org/.

    [CSE] Comment number 8:
    [57] 3500 bytes; 2.4s@14.4Kbps, 1.2s@28.8, 0.7s@50, 0.5s@64,
    0.3s@128, 0.1s@384, 0.1s@512, 0.0s@768, 0.0s@1.5Mbps,
    0.0s@10Mbps.

    [CSE] Comment number 9:
    [14] 0.34s, 4 errors, 7 warnings, 15 messages, 9 validator
    comments, 94 lines, 57 tags (34 closed), 0 document
    comments, 1 entity, 129 programs run.

    wie du siehst, hast du doch einige probleme...
    der w3c validator ist leider nicht so gut 😞

    nimm lieber htmltidy, das ding ist besser!



  • Ist dein Validator online zu finden? Wenn nicht könntest du ihn mir schicken? Bzw. einstweilen online stellen?

    Die meisten der Meldungen sind aber Warnungen. Ich will nun mal ".: SideWinders Home :." als Titel und nicht 10 Wörter 😃

    Naja seit ich einen TITLE-Tag geschlossen habe kann man es nun auch in jedem Browser bewundern - immer diese Dummen Schleichfehler :o.

    Komisch nur, dass ist dem HTML Validator auch nicht aufgefallen!

    MfG SideWinder



  • So jetzt reichts endgültig. Findet der dumme Validator immer noch 5 Fehler. Davon verstehe ich jetzt endgültig keinen mehr!

    1. Line 9, column 77: character data is not allowed here 
    ...ontent="text/html; charset=ISO-8859-1" />
                                                 ^
    

    Hier steht gar kein Zeichen 😕

    Line 48, column 149: document type does not allow element "INPUT" here; missing one of "INS", "DEL", "H1", "H2", "H3", "H4", "H5", "H6", "P", "DIV", "ADDRESS", "FIELDSET" start-tag 
    ...e="1a5b201eed6fea2ad8499e0986bf091d" />
                                              ^
    

    Wieso erlaubt er hier kein Input-Field? Damit ist übrigens das von --enable-trans-sid erstellte Input-Field gemeint - was kann ich dagegen noch tun?

    Line 48, column 150: character data is not allowed here 
    ...="1a5b201eed6fea2ad8499e0986bf091d" />
                                              ^
    

    Wie gesagt hier steht nix?!

    Line 63, column 135: document type does not allow element "INPUT" here; missing one of "INS", "DEL", "H1", "H2", "H3", "H4", "H5", "H6", "P", "DIV", "ADDRESS", "FIELDSET" start-tag 
    ...e="1a5b201eed6fea2ad8499e0986bf091d" />
                                              ^
    

    Dito.

    Line 63, column 136: character data is not allowed here 
    ...="1a5b201eed6fea2ad8499e0986bf091d" />
                                             ^
    

    Gleiches Prob.

    Das Vertrauen in den HTML Validator hab ich gerade verloren :(.

    MfG SideWinder

    Edit: Doch Code-Tags statt Quote-Tags.

    [ Dieser Beitrag wurde am 09.07.2003 um 20:10 Uhr von SideWinder editiert. ]


  • Mod

    sorry, der CSE Validator gehoert der firma...

    ich vermute den w3c validator haut es bei irgendwelchen nicht sichtbaren zeichen auf - speichere die seite mal mit einem anderen editor ab.

    bzw. verwende mal HTML Tidy

    um das input kannst du ein dummy-div machen, dann ist er zufrieden 🙂



  • Aha schade - kann man den kaufen oder ist das ein internes Produkt?

    ich vermute den w3c validator haut es bei irgendwelchen nicht sichtbaren zeichen auf - speichere die seite mal mit einem anderen editor ab.

    Hab extra mit dem Notepad jegliches falsches Leerzeichen gelöscht :D.

    um das input kannst du ein dummy-div machen, dann ist er zufrieden

    Wie kann ich um das von PHP erzeugte (durch --enable-trans-sid) Input ein DIV machen?

    MfG SideWinder



  • Schön langsam geht er mir auf die Nerven der Herr Validator. Was bitte habe ich jetzt noch falsch gemacht??

    http://validator.w3.org/check?uri=www.sidewindershome.net%2Fnew%2Findex.php

    Diese Zeichen muss PHP nachträglich einfügen - vorher sind sie 100% nicht drin.

    MfG SideWinder


Anmelden zum Antworten