|
Posted by Lasse Reichstein Nielsen on 06/24/05 19:07
"microchip" <verymicrochip@gmail.com> writes:
> 1. "<!----- Begin" is an invalid javascript function. It should have
> the slashes in front of it (like the end).
He wrote "<!-- Begin". That is at least a valid HTML comment starter.
There is no reason to have "<!--" in the script element at all, so it
should not be commented, just removed.
If it is not removed, it must be assumed that the author intends it to
work as an HTML comment for browsers not understanding that the script
element content should not be rendered (which includes pretty much no
browser newer than Netscape 2). For that purpose, there should not be
anything outside of the HTML comment, so there should not be slashes
in front of it.
> 3.Towards the end you put "<\/a>" instead of </a>
That is correct. You should always escape the sequence "</" when
it occurs inside a script element. He should do the same for "</b>".
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Navigation:
[Reply to this message]
|