FAQ Manager
[resolved] Rel attribute is not valid html5? (Feature request) (5 posts)

  1. sterfpaul
    Posted 3 years ago #

    The w3c validator won't validate my page because the rel='' attribute put on the awnser div (i think to show/hide it) isn't allowed to be on a div element.

    So my feature request is can this be made to work and be html5 valid? (So without the rel attribute).

    Thanks for the plugin btw works great.


  2. Josh Carr
    Posted 3 years ago #

    Link -- http://rmmr.us/frequently-asked-questions/
    Browser -- Google Chrome 24.0.1312.57 on Mac OS 10.8.2

    I second this request.

    I've seen some other developers stop using the rel="" attribute and switch to a data="" attribute. For example, the Lightbox Plus plugin was using rel="lightbox[post_id]" until recently. The developer was able to change that to data-lightbox="[post_id]" to maintain functionality and validate under html5.

    I'd propose offering data-faq="" instead of rel="" for all instances.

    I would appreciate it if you would offer that as an option so my FAQ pages can validate. Thanks! Please let me know if you need more information from me.

  3. Josh Carr
    Posted 3 years ago #

    I did verify that this works already. Just FYI.

    I replaced all of the necessary rel attributes with the data-faq attribute in the faq-manager.php, faq.init.js and faq.scroll.js files.

    Everything works beautifully and validates under HTML5. Could we swap that out in the next version of the plugin?

  4. Andrew Norcross
    Plugin Author

    Posted 3 years ago #

    I plan on changing all the rel values over to HTML5 data-attributes once I can confirm it will work in older versions of IE without extensive code additions.

  5. Josh Carr
    Posted 3 years ago #

    That could be why the lightbox plus developer made it a checkbox in the plugin settings. You can turn the HTML5-valid code on/off.

    I'm not sure if it was a compatibility thing though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • FAQ Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic