Support » Plugin: WP jQuery Lightbox » Not validating in HTML5 because rel attribute

  • Resolved pauly24

    (@pauly24)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ulfben

    (@ulfben)

    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.

    Plugin Author ulfben

    (@ulfben)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not validating in HTML5 because rel attribute’ is closed to new replies.