-
Notifications
You must be signed in to change notification settings - Fork 29
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
Comments
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! ;) |
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 Edit: … or you can use the more appropriate HTML5 data-* attribute: http://html5doctor.com/html5-custom-data-attributes/ |
see #8 close? |
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
The text was updated successfully, but these errors were encountered: