Fixed  member_view

R

ragtek

Guest
Is it really ok, that the tabs start with a <li><a but have not </li> at the end?

Code:
    <ul class="tabs mainTabs Tabs" data-panes="#ProfilePanes > li" data-history="on">
                <li><a href="{$requestPaths.requestUri}#profilePosts">{xen:phrase profile_posts}</a>
                <xen:if is="{$showRecentActivity}"><li><a href="{$requestPaths.requestUri}#recentActivity">{xen:phrase recent_activity}</a></li></xen:if>
                <li><a href="{$requestPaths.requestUri}#postings">{xen:phrase postings}</a>
                <li><a href="{$requestPaths.requestUri}#info">{xen:phrase information}</a>
                                    
            </ul>
 

g0rn

Well-known member
Well, that's what HTML5 specification has about it:
li element’s end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.
 
R

ragtek

Guest
thx, didn't know this.

i wasn't sure because
PHP:
<xen:if is="{$showRecentActivity}"><li><a href="{$requestPaths.requestUri}#recentActivity">{xen:phrase recent_activity}</a></li></xen:if>
have a endling li
 
Top