WordPress.org

Forums

iiRe Social Lite
[resolved] Html5 Validation error for href attribute on div (4 posts)

  1. klode
    Member
    Posted 2 years ago #

    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/

  2. klode
    Member
    Posted 2 years ago #

    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.

  3. srussell13
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  4. srussell13
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • iiRe Social Lite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic