This is a message.

Forum user: Stormblade

Basic information

Registered Aug 20, 2011
Last login Aug 20, 2011
Forum posts 3
Direct URL http://www.flowplayer.org/forum/users/104067

Latest forum posts

Posts:

Registered:

» » » » BugFix: Leading # requred on rel=

Posted: Aug 20, 2011

Awesome! I'm using this on my personal web site. Love it to death but the validation thing was definitely an issue for me. I eagerly away 1.2.6. I was worried when I saw the dates of these posts but that's great news! Thanks.

Posts:

Registered:

» » BugFix: Leading # requred on rel=

Posted: Aug 20, 2011

rel tags are perfectly valid for XHTML strict. Also we run into the same issue if we use class and start the name with a #.

The patch PeterLi proposed seems to be the sanest solution but it was on an older code base and apparently not included in newer code. Not sure why or am I missing something and there is a newer way to handle this issue?

I see there is a target option but besides a very scanty description I see no examples on how to use it.

I see only to ways currently to deal with this. Either fix the overlay code so that it does not require a # or use Javascript to dynamically modify the DOM. I dislike the second option as you are still dealing with invalid markup. All it does is hide that from the browser.


	$('a[rel]').each(function(){
		$(this).attr('rel', '#' + $(this).attr('rel'));
	});

Posts:

Registered:

» » wrap the img into an

Posted: Aug 20, 2011

Which DOCTYPE are you guys validating on. Using the anchor tag instead of the img is fine but # is not a valid value for the rel value

"character "#" is not allowed in the value of attribute "rel""

This was XHTML strict. If it can match up without that # it'd be perfect.

Edit:http://flowplayer.org/tools/forum/40/36626