Validation Errors

Home Forums Calendar Products Events Calendar PRO Validation Errors

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24311
    Mike
    Participant

    Hi,
    I’m running my client’s site through the W3C validators, and getting a number of validation errors related to TEC. For example:

    “itemscope” is not a member of a group specified for any attribute
    there is no attribute “itemtype”
    there is no attribute “itemprop”

    there is no attribute “data-month”
    ID “tribe-events-t” already defined
    ID “tribe-events-s” already defined

    FYI, I’m using XHTML 1.0 Transitional, and a Genesis theme.

    #24354
    Jonah
    Participant

    Hi Mike,

    In an effort to make the plugin more accessible and progressive we’ve incorporated HTML5 microdata (http://html5doctor.com/microdata/). Using the traditional XHTML transitional doctype, you are going to see warnings because the doctype does not include microdata. To get around this you should just be able to change your doctype in Genesis using something along the lines of:

    /*-----------------------------------------------------------------------------------*/
    /* Display Custom Doctype
    /*-----------------------------------------------------------------------------------*/
    remove_action( 'genesis_doctype', 'genesis_do_doctype' );
    add_action( 'genesis_doctype', 'custom_doctype' );
    function custom_doctype() { ?>



    ...or if you want to use HTML5...

    /*-----------------------------------------------------------------------------------*/
    /* Display Custom Doctype
    /*-----------------------------------------------------------------------------------*/
    remove_action( 'genesis_doctype', 'genesis_do_doctype' );
    add_action( 'genesis_doctype', 'custom_doctype' );
    function custom_doctype() { ?>



    I hope that helps but let me know if you need anything else.

    - Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Validation Errors’ is closed to new replies.