Ergebnis 1 bis 8 von 8

Thema: W3C Validierungsfehler

  1. #1
    Gesperrt
    Registriert seit
    09.03.2011.
    Ort
    Ober-Olm
    Beiträge
    168

    Standard W3C Validierungsfehler

    Hi zusammen,
    ich habe hier jede Menge Validierungsfehler und ich kann mir nicht erklären woher sie kommen...
    Ich habe das Gefühl das es ein Bug ist vielleicht von einem Modul?



    Die Fehler:

    Code:
    required attribute X not specified
    
    ✉
    
    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
    
    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
    
        Line 29, column 145: required attribute "type" not specified
    
        …reneboehres.de/plugins/mootools/1.4.5/mootools-core.js">\x3C/script>')</script>
    
    Error end tag for X omitted, but OMITTAG NO was specified
    
    ✉
    
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
    
        Line 39, column 7: end tag for "script" omitted, but OMITTAG NO was specified
    
        </head>
    
    Error document type does not allow element X here
    
    ✉
    
    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
    
    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
    
        Line 29, column 145: document type does not allow element "script" here
    
        …reneboehres.de/plugins/mootools/1.4.5/mootools-core.js">\x3C/script>')</script>
    
        Line 30, column 102: document type does not allow element "script" here
    
        …rc="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-more.js"></script>
    
        Line 31, column 94: document type does not allow element "meta" here
    
        …gle-site-verification" content="SndznYLoRLK097Ej16fIx9arPQr627NBmMYV7wrIwJ8" />
    
        Line 32, column 38: document type does not allow element "meta" here
    
        <meta name="robots" content="noodp" />
    
        Line 33, column 42: document type does not allow element "meta" here
    
        <meta name="geo.region" content="DE-RP" />
    
        Line 34, column 48: document type does not allow element "meta" here
    
        <meta name="geo.placename" content="Ober-Olm" />
    
        Line 35, column 57: document type does not allow element "meta" here
    
        <meta name="geo.position" content="49.938739;8.194685" />
    
        Line 36, column 50: document type does not allow element "meta" here
    
        <meta name="ICBM" content="49.938739, 8.194685" />
    
        Line 37, column 79: document type does not allow element "link" here
    
        <link rel="icon" type="image/vnd.microsoft.icon" href="tl_files/favicon.ico" />
    
        Line 38, column 88: document type does not allow element "link" here
    
        …="shortcut icon" type="image/vnd.microsoft.icon" href="tl_files/favicon.ico" />

    Quellcode vom Header Bereich

    Code:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--
    
    	This website is powered by Contao Open Source CMS :: Licensed under GNU/LGPL
    	Copyright ©2005-2012 by Leo Feyer :: Extensions are copyright of their respective owners
    	Visit the project website at http://www.contao.org for more information
    
    //-->
    <title>Rene Böhres Computer und PC Service Mainz, Wiesbaden, Frankfurt und Darmstadt - PC Hilfe auch am Wochenende und nach 18 Uhr!</title>
    <base href="http://dev.reneboehres.de/" />
    <meta name="robots" content="index,follow" />
    <meta name="description" content="Wir bieten Ihnen PC Service, IT-Service, PC und Notebook Reparatur, PC Notdienst, PC Hilfe und IT-Support. Wir bieten PC Notdienst auch am Wochenende und nach 18 Uhr!" />
    <meta name="keywords" content="" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <style type="text/css" media="screen">
    /* <![CDATA[ */
    #wrapper{width:952px;margin:0 auto;}
    #header{height:49px;}
    #footer{height:100px;}
    /* ]]> */
    </style>
    <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" />
    <link type="text/css" rel="stylesheet" href="http://s1.reneboehres.de/system/scripts/99295aa4d6d0.css" media="all" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>
    <script type="text/javascript">window.MooTools || document.write('<script src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-core.js">\x3C/script>')</script>
    <script type="text/javascript" src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-more.js"></script>
    <meta name="google-site-verification" content="SndznYLoRLK097Ej16fIx9arPQr627NBmMYV7wrIwJ8" />
    <meta name="robots" content="noodp" />
    <meta name="geo.region" content="DE-RP" />
    <meta name="geo.placename" content="Ober-Olm" />
    <meta name="geo.position" content="49.938739;8.194685" />
    <meta name="ICBM" content="49.938739, 8.194685" />
    <link rel="icon" type="image/vnd.microsoft.icon" href="tl_files/favicon.ico" />
    <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="tl_files/favicon.ico" />
    </head>

    Vorallem der Bereich rund um "Error document type does not allow element X here" finde ich interessant.
    Es werden die Meta Tags angemeckert die sich angeblich "nicht in diesem bereich befinden dürfen" dabei stehen sie im header....

  2. #2
    Contao-Urgestein Avatar von Thomas
    Registriert seit
    16.08.2009.
    Ort
    Visselhövede
    Beiträge
    1.947
    User beschenken
    Wunschliste

    Standard

    Ich glaube in dieser Zeile stimmt die Ausgabe nicht und deswegen meckert W3C rum:
    Code:
    <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" />
    <link type="text/css" rel="stylesheet" href="http://s1.reneboehres.de/system/scripts/99295aa4d6d0.css" media="all" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>
    <script type="text/javascript">window.MooTools || document.write('<script src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-core.js">\x3C/script>')</script>
    <script type="text/javascript" src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-more.js"></script>
    Müsste das nicht so aussehen?
    Code:
    <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" />
    <link type="text/css" rel="stylesheet" href="http://s1.reneboehres.de/system/scripts/99295aa4d6d0.css" media="all" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>
    <script type="text/javascript" src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-core.js"></script>
    <script type="text/javascript" src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-more.js"></script>
    Gruß Thomas
    "Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du." Mahatma Gandhi

  3. #3
    Gesperrt
    Registriert seit
    09.03.2011.
    Ort
    Ober-Olm
    Beiträge
    168

    Standard

    gut aber wenn das stimmt dann habe ich wenn ich mich recht entsinne keinen einfluss auf die ausgabe?
    die subdomains trägt man ja nur einfach im backend ein und fertig?
    oder erinnere ich mich falsch?

  4. #4
    Contao-Urgestein Avatar von Thomas
    Registriert seit
    16.08.2009.
    Ort
    Visselhövede
    Beiträge
    1.947
    User beschenken
    Wunschliste

    Standard

    So sollte es zumindest sein!

    Du kannst es ja mal testen, indem Du die Dateien händisch einbindest. Wenn es dann funktioniert, hast Du ja zumindest die Ursache dafür.
    Wo dann der Fehler begraben ist, müsstest Du erforschen.
    Contao-Check würde ich da vorschlagen, um zu sehen, dass alle Core-Dateien noch ok sind.
    Gruß Thomas
    "Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du." Mahatma Gandhi

  5. #5
    Contao-Urgestein Avatar von FloB
    Registriert seit
    19.06.2009.
    Ort
    Sonnensystem
    Beiträge
    1.618

    Standard

    Zitat Zitat von Thomas Beitrag anzeigen
    Müsste das nicht so aussehen?
    Code:
    <script type="text/javascript" src="http://s3.reneboehres.de/plugins/mootools/1.4.5/mootools-core.js"></script>
    Nö. Das hat schon seinen Zweck, wobei es grauenhaft aussieht. Wo kommt das genau her? Selber reinkopiert? Contao Core? Ich fürchte … ich suche die entsprechende Stelle grade.

    Sinn und Zweck dieser Zeile ist es ein Fallback zu bieten, falls das Google CDN ausfällt. Das Fallback aber mit document.write einzubauen ist sehr unschön; vielleicht soll es verhindern, dass More geladen wird, bevor MooTools Core geladen wurde. Aber document.write ist ein No-Go, weil Performance-Killer und deprecated.

    Die beste Lösung wäre hier wahrscheinlich sowas wie LAB.js (Blog-Post).
    So long,
    FloB since Nov. 2007 +706P +115P and counting

  6. #6
    Gesperrt
    Registriert seit
    09.03.2011.
    Ort
    Ober-Olm
    Beiträge
    168

    Standard

    ok ihr müsst mir das allerdings für nicht contao coder erklären
    zudem beschränken sich meine php kenntnisse auf die standard basis...
    und nein ich habe es nicht selbst reinkopiert

    ich hab nur die vorhandenen mittel unter "seitenstruktur->bearbeiten (startpunkt)->dns-einstellungen" genutzt
    Geändert von d3x84 (02.07.2012 um 23:43 Uhr)

  7. #7
    Contao-Nutzer
    Registriert seit
    17.04.2012.
    Ort
    Deutschland / Bulgarien
    Beiträge
    131

    Daumen hoch

    Also die Lösung besteht wohl darin, im Seitenlayout unter MooTools Einstellungen auf das lokale Feedback zu verzichten, also entweder von googleapis.com laden (würde ich nehmen) oder die lokale Datei verwenden. Dieses lokale Fallback über document.write bringt den Validator durcheinander. Wenn man auf Fallback verzichtet, zeigt er wieder grünes Licht :-)

    Grüße
    Anguel

  8. #8
    Contao-Nutzer
    Registriert seit
    17.04.2012.
    Ort
    Deutschland / Bulgarien
    Beiträge
    131

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •