incorrect text highlighting of HTML inside javascript after "/>"

Bug #1009334 reported by nmz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GtkSourceView
Invalid
Medium
gtksourceview3 (Ubuntu)
Triaged
Low
Unassigned

Bug Description

when you enter an string in JavaScript witch contains "/>" at the end, Gedit
changes the color of text after the double quotation to gray. for example:

<html>
<head>
<script type="text/javascript">
function startTime()
{
var a = "<br />"
var today = new Date()
var d1 = new Date("October 13, 1975 11:13:00")
var d2 = new Date(79,5,24)
var d3 = new Date(79,5,24,11,33,0)
var myDate=new Date();
myDate.setFullYear(2010,0,14);
document.getElementById("txt").innerHTML=d1+"<br />"+d2+"<br />"+d3+a+myDate
}

function checkTime(i)
{
if (i<10)
  {
  i="0" + i;
  }
return i;
}
</script>
</head>

<body onload="startTime()">
<p id="txt"></p>
</body>
</html>

Tags: patch
Revision history for this message
nmz (s-namitha-s) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

affects: gedit (Ubuntu) → gtksourceview3 (Ubuntu)
Changed in gtksourceview3 (Ubuntu):
importance: Undecided → Low
nmz (s-namitha-s)
Changed in gtksourceview3 (Ubuntu):
assignee: nobody → nmz (s-namitha-s)
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "proposed change to html.lang" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
nmz (s-namitha-s) wrote :
nmz (s-namitha-s)
affects: gtksourceview3 (Ubuntu) → gtksourceview
affects: gtksourceview → gtksourceview3 (Ubuntu)
Changed in gtksourceview3 (Ubuntu):
status: New → Triaged
nmz (s-namitha-s)
Changed in gtksourceview3 (Ubuntu):
assignee: nmz (s-namitha-s) → nobody
Changed in gtksourceview:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in gtksourceview:
status: Confirmed → Invalid
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.