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

  1. pauly24
    Posted 3 years ago #

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


    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?


  2. ulfben
    Plugin Author

    Posted 3 years ago #


    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
    Plugin Author

    Posted 3 years 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

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic