Closed
Bug 489968
Opened 15 years ago
Closed 15 years ago
Javascript: Bad parsing of </script> tag insted quoted string.
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: mbabuskov, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009011912 Firefox/3.0.6 Having a code like this: <script>var test="</script>";</script> Makes the </script> terminate even if it is inside quotes. What's interesting it that it behaves differently if single-quotes are used: <script>var test='</script>';</script> Reproducible: Always Steps to Reproduce: 1. Create a html page with this content: <script>var test="</script>";alert(1);</script> 2. Open it in Firefox Actual Results: Alert does not show up. Expected Results: Alert should show up.
Reporter | ||
Updated•15 years ago
|
OS: Linux → All
Updated•15 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•