When it's broken, it's broken
Thursday, 28. February 2008, 10:52:00
The error was completely incomprehensible, except that it seemed like Opera tried to execute some HTML markup as JavaScript:
Inline script compilation Syntax error while loading: line 6 of inline script at http://www.atlassian.com/software/jira/videos/jira_video/jira_video.jsp : Expected expression <script language="JavaScript"></script><noscript></noscript><!--/DO NOT REMOVE/--> --------------------------------------^
This sometimes happens if a file has a SCRIPT element with a SRC that links to a HTML file. But the page had only two external .js files, and neither was broken.
After a bit of trial and error I had a minimal file. The error occurs because a starting HTML comment inside a SCRIPT tag does not have a matching closing comment inside that SCRIPT tag. So Opera looks ahead for another closing comment, and it seems this confusion means some of the markup is seen as being "inside" the script.
Now I was in for a great surprise: both IE7 and Firefox 2 did exactly what Opera did when displaying my attempted test case! Have a look:
jira.htm
My first thought was that while minimising I had removed something that made the site work in IE and Firefox. Then I tried watching the video in either browser.. No joy. JIRA's video page is broken (by an Omniture SiteCatalyst script that carelessly omits a //--> from a script element) and - wow - they have broken it in a cross-browser compatible way!
Well, I just added that missing closing comment and re-loaded the page from cache in Opera - but I must be the only person who has seen JIRA's demo video recently
By dantesoft, # 28. February 2008, 11:15:18
By deadHarlequin, # 28. February 2008, 15:21:53
Was that the actual page containing the error?
By kyleabaker, # 28. February 2008, 21:12:45
By hallvors, # 28. February 2008, 23:33:34
By IceArdor, # 1. March 2008, 23:36:58