Konqueror display reports a bug

Bug #445121 reported by OldAl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer Website
Fix Released
Medium
Unassigned

Bug Description

When displaying with Konqueror the bzr-explorer-website visual tour, Konqueror shows a bug symbol at the bottom right hand side. Clicking it displays one of the following messages:

For *Windows* (default) display on a Linux desktop:
Error: http://doc.bazaar-vcs.org/explorer/en/visual-tour-windows.html: Parse error at http://doc.bazaar-vcs.org/explorer/en/visual-tour-windows.html
 line 58

For *Gnome* display
Error: http://doc.bazaar-vcs.org/explorer/en/visual-tour-gnome.html:
Parse error at http://doc.bazaar-vcs.org/explorer/en/visual-tour-gnome.html line 58

Konqueror is running on a ubuntu (9.04) gnome desktop. The effect of the reported bug, if any, is unknown.

OldAl.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

That's in some JavaScript:

<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost +
"google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
  </script>

The error is occurring on this line ... "google-analytics.com/ga.js'

Any ideas?

Revision history for this message
Martin Pool (mbp) wrote :

Yes, it's because (despite looking like C or Java) Javascript treats newlines as statement separators. You have to make sure that the whole quoted string "google-analytics....%3E" is on a single line in the html.

Changed in bzr-explorer-website:
status: New → Confirmed
importance: Undecided → Medium
Changed in bzr-explorer-website:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.