Fixed thread_list_item gets double "title" attributes

thedude

Well-known member
The template for thread_list_item contains

Code:
<a{xen:if {$visitor.user_id}, ' href="{xen:link threads, $thread}"'} class="faint"><xen:datetime time="$thread.post_date" title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}" /></a></span><xen:if is="{$showForumLink}"><span class="containerName">,

If the visitor is registered, a title will be set already via

Code:
title="{xen:if {$visitor.user_id}, '{xen:phrase go_to_first_message_in_thread}'}"

but the datetime helper in there will also add its own title under certain circumstances. Login to xenforo.com, visit this subforum (or any other), view the source and search for "faint" and you'll see a couple of instances like this with two title attributes in the DateTime span:

Code:
<a href="threads/pre-sales-faq.4951/" class="faint"><span class="DateTime" title="Go to first message in thread" title="Oct 5, 2010 at 5:02 PM">Oct 5, 2010</span></a></span>
 
Top Bottom