|
|
#1 |
|
Junior Member
Join Date: Apr 2009
Posts: 22
Rep Power: 2 ![]() |
I've been trying to get my site to validate. One issue I have is with a <td> tag causing 27 errors. Commenting it out resulted in my only having 5 errors (I had 32 with the tag) which I am now trying to resolve.
Commenting out this tag doesn't seem to have caused a problem on my site (yet...I don't have ads right now so not sure what would happen when I do). I am using a custom template, but I never touched the code in question until now. Not sure if my commenting out the <td> tag will create problems. Is the tag necessary here? I am not sure what the {/section} refers to so it is making it difficult for me to troubleshoot. To me it looks like the <td> tag is out of place and doesn't have a closing tag which is why there were errors. Anyone have any insight/suggestion/advice??? Thank you!! My site is: www.classypoints.com Here is the code from the home.tpl file: <table class="main" width="100%"> <tr> <th>{$smarty.const.LANG_BROWSE_CATEGORY}</th> </tr> <tr> <td> <table width="100%"> {section name=tr loop=$data step=$cols} <tr> {section name=td start=$smarty.section.tr.index loop=$smarty.section.tr.index+$cols} <td valign="top"> {if $data[td]<>""} {$data[td].start_link}<img src="{$data[td].image}" border="0" alt="{$data[td].name}" /></a> {$data[td].start_link}<strong>{$data[td].name}</strong></a> {if $data[td].total <> ''} ({$data[td].total}) {/if} <br /> <!--{$data[td].subcats}--> {$data[td].description} {/if} </td> <!--<td>--><!--//this td tag when uncommented resulted in 27 errors--> {/section} </tr> {/section} </table> </td> </tr> </table>
__________________
Version 4.1.6 - Developer Edition. Using a custom template created by modifying the default template.
|
|
|
|
|
|
#2 |
|
68 Evangelist & Developer
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,708
Rep Power: 49 ![]() ![]() |
You are correct and that <td> tag doesn't belong there. If my memory serves me correctly, I believe I already reported that as a bug.
__________________
Mike-N-Tosh IndianaPC.org - A community website (v3.1.10 Developer - heavily modified) Sandbox (v3.1.10, v4.0.9, 4.1.5) Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2009
Posts: 22
Rep Power: 2 ![]() |
Thank you!
I've got it down to 1 error without that tag. The following code is causing the remaining error: <div id="newlistings"> <h2>{$smarty.const.LANG_FEATURED_LISTINGS}</h2> {feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'} </div> The above is outputting the following: <div id="newlistings"> <h2>Featured Listings</h2> <table width="100%" cellpadding="3" cellspacing="3"> </table> </div> When I validate, the above results in the following error: end tag for "table" which is not finished </table> Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p> Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on. Do you have any idea why I'm getting that error and how I can fix it? Thanks again.
__________________
Version 4.1.6 - Developer Edition. Using a custom template created by modifying the default template.
|
|
|
|
|
|
#4 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,498
Rep Power: 37 ![]() |
There is nothing in the table is there. It is empty of rows and columns or anything. Try putting some featured listings into your site. Then recheck.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2009
Posts: 22
Rep Power: 2 ![]() |
I'll do that and recheck. I didn't realize the table tag required child tags or it wouldn't validate. First time I'm encountering that sort of issue. The error message makes much more sense now.
Thank you!
__________________
Version 4.1.6 - Developer Edition. Using a custom template created by modifying the default template.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ad Field Validation | djstevie84 | Feature Requests | 1 | 10-15-2008 03:48 AM |
| w3.org Validation Problems | bowers01 | HTML, CSS, and Design Help | 2 | 09-16-2008 07:10 AM |
| Code validation | Nickb | HTML, CSS, and Design Help | 2 | 08-31-2007 11:16 AM |
| New user email validation | Bucketman | v3.0 Questions & Support | 3 | 04-06-2006 10:05 AM |