Get your own customer support community

Recent activity

Subscribe to this feed
  • problem

    Robert Xiao reported a problem in BinaryAge on September 16, 2008 05:40:

    Robert Xiao
    Rainbow improperly highlights <script><!-- --></script>
    If a site does something like

    <script type="javascript" src="slider.js"><!-- this is the JS for the fancy slider effects --></script>
    the ending </script> tag isn't noticed by Rainbow, and it will try to JS-highlight everything until it meets another </script> tag which isn't preceded by a > (at least, that's what I've noticed).

    This causes a problem in some websites, e.g. Wikipedia: around line 64, there is such a script tag, and the rest of <head> consists only of bare includes, so Rainbow pretends that a chunk of the head and the body is JS, and then highlights a bunch of unmatched tags that it missed while in JS mode.