why </script> tag in js string is being validated
<p>I have following page</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;script type="text/javascript" src="e01.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type="text/javascript"&gt;
var obj={someHTML: "&lt;script&gt;alert('a');&lt;/script&gt;rest of the html",  
               someOtherAttribute:"some value"};
    alert(obj.someHTML);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>in someHTML attribute of my object I have <code>&lt;/script&gt;</code> tag in a string. but browser reads this as actual close tag and closes the script element. is there anything I am missing here? (tried it in ff and chrome) </p>
