GNOME Bugzilla – Bug 670803
incorrect text highlighting of HTML after "/>" in a JavaScript script
Last modified: 2013-11-15 17:35:23 UTC
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>
Created attachment 210326 [details] [review] proposed change to html.lang Modification to the script highlighting in html
Created attachment 210328 [details] [review] proposed change to html.lang
*** Bug 696851 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 614072 ***