Dave Methvin schrieb:
>> I got on the w3c validator discussion list because of
>> target being dropped from xhtml 1.1
>> ...
>> I changed target into class="target somewhere" 
>> and let jquery do the rest.
> 
> Were you trying to open a new window on some links? One easy way to do that
> is to set the target dynamically.
> 
> $("[EMAIL PROTECTED]").attr("target","_blank");
> 
> <a rel="external" href="http://www.google.com";>test</a>

Dave,

I could think that some browers may ignore invalid attributes that are 
attached afterwards, in particular if you serve XHTML 1.1 as XML as 
intended.

Why not:

$("[EMAIL PROTECTED]").title('Opens a new window').click(function() {
     var win = window.open(this.href, '', 
'directories,location,menubar,resizable,scrollbars,status,toolbar');
     win.focus();
});

-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to