Thread JavaScript und Kommentare: bzw Firefox bug? (15 answers)
Opened by vayu at 2007-06-25 16:52

GwenDragon
 2007-06-26 13:18
#25160 #25160
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
@murphy

Code: (dl )
1
2
3
4
5
6
7
8
9
<script type='text/javascript' language='javascript'>
<!--
/*
Test test test
Add <script src="sorttable.js"></script> to your HTML
Test test test
*/

//-->


Quote
Information that appears between comments has no special meaning (e.g., character references are not interpreted as such).

Da steht aber das ganze Skript in einem HTML-Kommentar.

Warum überspringt der HTML-Parser das dann nicht?\n\n

<!--EDIT|GwenDragon|1182849692-->

View full thread JavaScript und Kommentare: bzw Firefox bug?