Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default [Done 2.0] 1.50beta h2 inside caption tag

    as per this comment:
    http://www.zen-cart.com/forum/showthread.php?p=561756

    includes/templates/template_default/templates/tpl_account_default.php

    Line 26
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="prevOrders">
    <caption><h2><?php echo OVERVIEW_PREVIOUS_ORDERS; ?></h2></caption>
    <tr class="tableHeading">

    The h2 inside the caption tag is invalid XHTML.

    This could be fixed by deleting the h2 tags and adding
    #prevOrders caption
    to the existing h2 declaration in the stylesheet, eg:

    h2, #prevOrders caption {
    font-size: 1.4em;
    }

    Or giving the caption its own id
    <caption id="orderHistoryStatus"><?php echo OVERVIEW_PREVIOUS_ORDERS; ?></caption>

    regards
    Steve

    ps. Why bother with all this validation pedantry?
    Because a stock ZC site is one of the very few sites (not just shops) on the entire net that is actually 100% valid code, which is something to be proud of I think.

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: [Done 2.0] 1.50beta h2 inside caption tag

    We are using a new approach in coming versions, which will make this issue irrelevant. Furthermore, this will never come up on an XHTML validator because the page sits behind the login veil. If you are really concerned, simply use a template override.
    Last edited by BlindSide; 2 Sep 2011 at 10:19 PM.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

 

 

Similar Threads

  1. [Fixed] 1.50beta unclosed input tag
    By torvista in forum Bug Reports
    Replies: 1
    Last Post: 22 Aug 2011, 06:17 AM
  2. [Done v1.5] 1.50Beta missing email_welcome.php
    By Rinker in forum Bug Reports
    Replies: 1
    Last Post: 16 Aug 2011, 10:12 AM
  3. Replies: 0
    Last Post: 4 Jun 2010, 03:17 AM
  4. Text positioning inside TD tag not working in Firefox
    By ajhb in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Sep 2008, 12:15 PM
  5. Replies: 0
    Last Post: 25 May 2008, 11:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR