[wp-trac] [WordPress Trac] #14127: Dashboard feed widgets should open entries in new tabs

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 29 02:04:09 UTC 2010


#14127: Dashboard feed widgets should open entries in new tabs
-------------------------+--------------------------------------------------
 Reporter:  IndigoJo     |        Owner:            
     Type:  enhancement  |       Status:  closed    
 Priority:  normal       |    Milestone:            
Component:  General      |      Version:  3.0       
 Severity:  normal       |   Resolution:  worksforme
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by filosofo):

 Replying to [comment:4 scribu]:
 > Good observation, yet it works, because they're automatically translated
 into absolute URLs in JavaScript land.

 Yes and no, depending on what you're getting and the client you're doing
 it in.

 Yes in IE--you get the full path. But in Firefox it depends:
  * The href ''property'' of the target has the full path.
  * But the "href" ''attribute'' has its actual value, here not absolute.

 In this case

 `jQuery(ev.target).attr('href')`

 is equivalent to

 `ev.target.getAttribute('href') // relative path`

 not

 `ev.target.href // absolute path`

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14127#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list