Closed
Bug 392206
Opened 17 years ago
Closed 17 years ago
"</script>" within javascript quotes is interpreted as end of script
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: bgould, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 The string </script> is interpreted regardless of whether or not it is contained in a quoted string. This behavior is the same on IE, but it is still wrong. For example, using the following line: <script> alert(" display this string: </script> "); </script> The first instance of </script> is interpreted as the end of the script. A simple workaround is: <script> alert(" display this string: </sc"+"ript> "); </script> Reproducible: Always Steps to Reproduce: 1.<script> alert(" display this string: </script> "); </script> 2. 3. Actual Results: Script is interpreted as terminating at first instance of </script>
Comment 1•17 years ago
|
||
Same as or similar to bug summary of many many many bugs which were DUPed to INVALID & very very old Bug 32618. > Bug 32618 </script> tag in javascript string seen as end of script Search already-closed/invalid/duplicated bugs also well before open bug, and check standards such as W3C's spec, RFC, ECMA and so on before open bug, and/or execute Google search, please. Please note that here is bugzilla.mozilla.org, not support forum nor support center nor customer help center.
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•