1. Herzlich willkommen bei WPDE.org, dem grössten und ältesten deutschsprachigen Community-Forum rund um das Thema WordPress. Du musst angemeldet oder registriert sein, um Beiträge verfassen zu können.
    Information ausblenden

Valide html pages

Dieses Thema im Forum "Design" wurde erstellt von 0Stefan0, 23. Juli 2009.

Schlagworte:
  1. 0Stefan0

    0Stefan0 New Member

    Registriert seit:
    23. Juli 2009
    Beiträge:
    3
    Zustimmungen:
    0
    Nach der Installation bei der Überprüfung durch xhtml kommt folgender Fehler :

    Validation Output: 3 Errors


    1. [​IMG] Line 31, Column 23: Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"? <div id="header" role="banner">
      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. [​IMG] Line 66, Column 16: Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"? <form role="search" method="get" id="searchform" action="http://www.wilhelm-
      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.
    3. [​IMG] Line 80, Column 12: Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"? <ul role="navigation">
      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.
    gibt es dafür eine Lösung ?

    Viele Grüße
     
  2. jottlieb

    jottlieb Well-Known Member
    Ehrenmitglied

    Registriert seit:
    20. August 2005
    Beiträge:
    17.381
    Zustimmungen:
    1
    Die Lösungen steht ja da. Es wird beschrieben, dass role kein gültiges Attribut ist. Da du keinen Link zum Blog gegeben hast, können wir nur raten, dass es wohl im Theme so ist und warum der Themeautor das reingebaut hat. Also das Attribut löschen.
     
  3. maxe

    maxe Well-Known Member
    Ehrenmitglied

    Registriert seit:
    1. Mai 2008
    Beiträge:
    19.581
    Zustimmungen:
    277
    ich denke diese Aria-Landmarks sind noch keine Webstandards (erst mit html5), deshalb meckert der Validator. Aber wenn du darin einen Vorteil siehst lass sie drin. Nicht alles muss 100% valide sein.
     
  4. codestyling

    codestyling WPD-Team

    Registriert seit:
    30. März 2008
    Beiträge:
    1.904
    Zustimmungen:
    0
    Das ist XHTML 2.0 ARIA Role Module W3C: http://www.w3.org/TR/xhtml-role/
    Das kennt der Validator (noch) nicht, alles was mit ARIA zu tun hat, wird angemeckert.
     
  5. walkermore

    walkermore New Member

    Registriert seit:
    1. April 2010
    Beiträge:
    1
    Zustimmungen:
    0
    sounds good to me..pretty helpful article so far i have ever got..
     
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.
    Information ausblenden
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.
    Information ausblenden