4
I went through a problem where was presented a tag <script>
and contained these HTML comment characters.
Function example
<html>
<head>
<script type="text/javascript">
<!--
function Alert(){
alert("apenas uma função exemplo")
}
//-->
</script>
</head>
<body>
<button onClick="Alert()">Funcão Exemplo</button>
</body>
</html>
If you put this structure in an ASP.NET Webforms application, and simply remove the tag comment from the end of script, it doesn’t work.
<html>
<head>
<script type="text/javascript">
<!--
function Alert(){
alert("apenas uma função exemplo")
}
</script>
</head>
<body>
<button onClick="Alert()">Funcão Exemplo</button>
</body>
</html>
<!-- comentário -->
= HTML ---/* comentario */
= Javascripts, css, Asp and php– KingRider
where did you see this? play on w3c to see what it is @Marcos Costa
– user45474
@Assanges in a legacy system of the company where I work.
– Marcos Costa