Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML 5 validation issues #4

Open
jadamson opened this issue Aug 8, 2011 · 3 comments
Open

HTML 5 validation issues #4

jadamson opened this issue Aug 8, 2011 · 3 comments

Comments

@jadamson
Copy link

jadamson commented Aug 8, 2011

Using rel="lightbox" is no longer valid in HTML 5. Here is a list of valid types http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#linkTypes

@Covi
Copy link

Covi commented Oct 13, 2011

Mmm... I know this is not the best way: deceive the validator; but i'm using long ago a bypass: your elements in no processed code don't need the rel element: you can write a bypass for this. Example:

var elements = $$('.popup'); // Example for popups in|outline content:
elements.each( function(item) {
    if ( item.hasClass('inline') ) 
        item.set('rel', 'mediabox[inline 450 300]').mediabox();
    else 
        item.set('rel', 'mediabox[720 450]').mediabox();
});

Note: I'm using old version of Mediabox. Not checked, I don't know if the DocType affects to result, ...but I guess you can use your own attributes as HTML5 data-attributes and firing constructor method (in my case: mediabox()).

Good luck! ;)

@fbender
Copy link

fbender commented Oct 17, 2011

The list is not fixed, you can register more rel types: http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#concept-rel-extensions
You might consider proposing a generic type (like 'media', 'popover', … dunno) rather than a proprietary 'mediabox' (though it sounds pretty generic) so all the other mediabox alternatives can use that one, too (probably increases the odds for making this an accepted standard): http://microformats.org/wiki/existing-rel-values#HTML5_link_type_extensions

Edit: … or you can use the more appropriate HTML5 data-* attribute: http://html5doctor.com/html5-custom-data-attributes/

@fbender
Copy link

fbender commented Nov 3, 2011

see #8

close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants