• Resolved klode

    (@klode)


    hi,
    the HTML5 Validator on W3C website says to me that a div cannot have href as attribute for div element. Instead, it’s possible to use another attribute (for example, uri or extlink, or whatever) and use it for Javascript function.

    Thanks for your supply.

    http://wordpress.org/extend/plugins/iire-social-lite/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter klode

    (@klode)

    I have found a solution for this inconvenient.
    first of all, remove all elements into Widget settings and Shortcode settings.

    then, in the “iire_social_lite_widget.js” and “iire_social_lite_shortcode.js” change all “href” attribute calling with jquery to “data-href”, and in the rendering of widget, in the div “icon” element, change “href” to “data-href”.

    That’s it.

    In the creation of widget for iiRe social Lite, a jQuery function create the string with anchor element and the div with all information regarding the image to show for the social link. One of the attribute (href) will be change to “data-href” for a solution on validation with W3C Validator.

    Plugin Author srussell13

    (@srussell13)

    I can look into changing that in the next upgrade. A div is necessary since the background image is created from a sprite and float alignments.

    Plugin Author srussell13

    (@srussell13)

    Can you please send me (srussell dot iireproductions dot com) a link with the zip file of your changes to the plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Html5 Validation error for href attribute on div’ is closed to new replies.