WordPress.org

Ready to get started?Download WordPress

Forums

WP jQuery Lightbox
[resolved] Not validating in HTML5 because rel attribute (3 posts)

  1. pauly24
    Member
    Posted 1 year ago #

    The rel link for a lightbox img on my page looks like this

    rel="lightbox[135869822710781]

    When I run it through a validator I get

    Bad value lightbox[135869822710781] for attribute rel on element a: Not an absolute IRI. The string lightbox[135869822710781] is not a registered keyword or absolute URL

    Any help?

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-w3c-validator-1?replies=2#post-2797371

    Though I'm no longer sure it's worthwhile. The current non-validating solution causes no problem for anyone, 'cept with validation.

    Point being; I'm not convinced that validation for it's own sake is valuable.

    Creating a solution is relatively straight forward (data-* attributes in html5 is valid), but I would still have to support the old method for eternity. Plenty of users have hard coded rel="lightbox" in their content.

    I'm currently working on the codebase for an upcoming refresh and I've got this thing rolling around in my head. Any input is welcome.

  3. ulfben
    Member
    Plugin Author

    Posted 1 year ago #

    I chose not bother with this. The rel-attribute causes no problem, but changing the convention to use class or data-attributes now would be a headache. So I'm holding off for now.

    If HTML5 validation is important to you, there are other plugins.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic