1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Won't Fix Html invalid syntax in "template_edit" (admincp)

Discussion in 'Resolved Bug Reports' started by rellect, Aug 16, 2015.

  1. rellect

    rellect Well-Known Member

    Admin template "template_edit"
    HTML:
    <xen:label>{xen:raw $styleChooser} {xen:phrase template_name}:</xen:label>
    The output is something like
    HTML:
    <label for="templateTitle">
        <div class="topChoosers">
            <div class="Popup">
                <span class="muted">Style:</span> <a rel="Menu">Master Style</a>
                <div class="Menu">
                    <div class="primaryContent menuHeader"><h3>Styles</h3></div>
                    <ul class="secondaryContent blockLinksList">
                            <li><a href="admin.php?styles/master-style.0/templates#_account-css"><span class="_depth0">Master Style</span></a></li>
                            <li><a href="admin.php?styles/default-style.1/templates#_account-css"><span class="_depth1">Default Style</span></a></li>
                    </ul>
                </div>
            </div>
        </div>
    Template Name:</label>
    <div> inside a <label> tag is incorrect.

    Not sure if you consider such errors worth fixing since it's in the admin area.
     
  2. Mike

    Mike XenForo Developer Staff Member

    In general, we don't aim for HTML validation for the sake of validation; we would generally make changes if causes problems (rendering differences, accessibility issues, etc). As a general example, there are things that weren't allowed in HTML4 but are specifically allowed in HTML5 (such as <a> tags wrapping <div>'s) and browsers rendered them as expected already.

    Worth checking this case, though there may not be a simple fix anyway.
     

Share This Page