PDA

View Full Version : Using <noscript> in table// HTML tidy error


Cam
09-01-2002, 07:00 PM
HTML tidy gives me an error when putting a <noscript> block in a table. The table is set up as a navtable and I've anchored the javascript in the table. The navscript will replace the javascript navmenu if the users browser doesn't like javascript.

Will ignoring this error give me any problems?

Cheers

Cam

redhead
09-01-2002, 09:24 PM
putting <noscript> in a table shouldnt cause any errors... if in doubt... throw it on the web and see for yourself ;)

Cam
09-01-2002, 10:07 PM
Thanks, I've done that.

Just wondering if there was some esoteric error it would cause that I may not be aware of

Cheers

Cam

joh6nn
09-01-2002, 10:15 PM
alternatively, post the code, so we can look at it. easier to make a call if you can see the play. ::wonders why refs don't know that::

Cam
09-01-2002, 10:39 PM
Ooops... stupid me

After looking at it again what had happened was the <noscript> bridged the navtable rather than enclosing it.

E.g.

<tr><td>
<noscript>
<!-- no script nav table-->
<table width=100% summary="no script nav table">
<tr>
<td>Content of table</td>
</tr>
</noscript>
</table>
</td>
</tr>

Instead of

<tr><td>
<noscript>
<!-- no script nav table-->
<table width=100% summary="no script nav table">
<tr>
<td>Content of table</td>
</tr>
</table>
</noscript>
</td>
</tr>

Sloppy, sloppy, sloppy.... time for another coffee...

Cam