VorlonShadow
Newbie
Posts: 1
Registered: 6/27/2009
Member Is Offline
|
| posted on 6/27/2009 at 02:02 PM |
|
|
w3c Compiant issue
I'm using Tigra Menu Gold, and have the following code to initiate my menu:
<script language="JavaScript" type="text/javascript">
function wrap(s_text, n_state) {
return (this.TMi
? '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td width="17">' + (n_state ? '<img
src="img/lev1_arrow.gif" border="0" alt=">"/>' : ' ') + '<td class="TM0i0">' + s_text +
'</td></tr></table>'
: '<table cellspacing="0" cellpadding="' + (n_state ? 3 : 2) + '" border="0" width="100%"><tr><td valign="top"
background="img/lev0_bg' + (n_state ? 2 : 1) + '.gif" class="TM0i' + (n_state ? 1 : 0) + '">' + s_text +
'</td></tr></table>'
);
}
new menu(MENU_ITEMS, MENU_TPL, { 'wrapper': wrap });
</script>
When I try to run a w3c validation on the page, I get the error, "document type does not allow element "table" here". It indicates the line that
starts "? '<table cellspacing="0"" above. I realize that this is not really a table element, but that it's building the table using
JavaScript. But, I really want my pages to be w3c compliant, so is there any way to fix this problem?
Jesse
|
|
|
|