![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Should we continue to hide the inline script content or not ? I mean using this well known syntax : script type="text/javascript"><!-- document.write("test"); //--></script |
#3
| |||
| |||
|
|
There is no need to "hide" script using HTML comments, and there has not been any need to since Netscape 2. We are now in the next century |
#4
| |||
| |||
|
|
In article <46824617$0$46400$c30e3... (AT) pit-reader (DOT) telstra.net>, r... (AT) invalid (DOT) com says... There is no need to "hide" script using HTML comments, and there has not been any need to since Netscape 2. We are now in the next century Right, thanks |
#5
| ||||
| ||||
|
|
On Jun 27, 12:38 pm, Asterbing wrote: r... (AT) invalid (DOT) com says... There is no need to "hide" script using HTML comments, and there has not been any need to since Netscape 2. We are now in the next century Right, thanks having said that though there is the related topic of how to present inline javascript in xhtml, so that xml parsers don't trip up on it, |
|
its another subject but amounts to using the following syntax: script type="text/javascript" //<![CDATA[ //]] /script |
|
you will thus not get warnings when validating your strict xhtml doc, |
|
when you use < and other characters the parser might otherwise trip up on. |
![]() |
| Thread Tools | |
| Display Modes | |
| |