WP 2.3 fehlerhaft Javascript (validator)

  • Hallo zusammen,

    habe meine seite durch den validator gejagt, da ich teilweise unter i.e 6.0 probleme mit der Ansicht gehabt habe und bekomme immer diese meldungen:

    1. [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 98, Column 13: there is no attribute "lang".<script lang='javascript'><!--
      You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
      This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
      How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
    2. [Blockierte Grafik: http://validator.w3.org/images/info_icons/error.png] Line 98, Column 25: required attribute "type" not specified.<script lang='javascript'><!--
      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>.

    habe lange gesucht und unter wp-includes/widgets.php diese Zeilen gefunden

    kann jemand einentipp geben ob man eine korrigierte version findet, soll ich aufs neue wp warten.

    kann jemand diesen beitrag den etwicklern weitergen??

    Danke für die Antwort jetzt schon
    Gruß
    lampros:-D

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Stimmt, widgets.php, Zeile 633 (WP 2.3.1 DE) :shock:

    Sollte aber eigentlich nicht zu Anzeigeproblemen führen. Du kannst das aber natürlich trotzdem das lang="javascript" in type="text/javascript" ändern - und hoffen das es in einer kommenden Version behoben wird...

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!