Closed Bug 207575 Opened 23 years ago Closed 22 years ago

aviationweather.gov - </script> tag inside of javascript string literal terminates <script> tag

Categories

(Tech Evangelism Graveyard :: English US, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: blizzard, Unassigned)

References

()

Details

The url above doesn't work properly. You see a lot of script garbage at the top of the page and a javascript error: Error: unterminated string literal Source File: http://aviationweather.gov/awc/pireps/menu.html Line: 27, Column: 11 Source Code: output += "<script language=\"JavaScript\">setTimeout('close()',12000) Line 27 is actually this: output += "<script language=\"JavaScript\">setTimeout('close()',12000)</script>"; and if you look at it in the view source window, the </script> is highlighted as is the rest of the script text. This indicates to me that the </script> tag is probably being interpreted as the end of the actual script, not included in the string literal.
Um, that's precisely per spec. We don't want the HTML parser to have to kknow all about Javascript (CSS, VBScript...) as well as HTML syntax; end-tags inside of <script> and <style> should be escaped. ->Evangelism
Assignee: harishd → bc
Component: Parser → US Gov
Product: Browser → Tech Evangelism
QA Contact: dsirnapalli → chrisn
Version: Trunk → unspecified
At the same time, IE and konq have no problem with this, even if it's ill formed (and I still think that it's questionable if it is.)
Summary: </script> tag inside of javascript string literal terminates <script> tag → aviationweather.gov - </script> tag inside of javascript string literal terminates <script> tag
tech evang june 2003 reorg
Assignee: bc → english-us
Component: US Gov → English US
QA Contact: chrisn → english-us
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Oct
I've sent email to that account, let's see if they fix it (the page hasn't been changed in a long time.)
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.