Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-1045

IE11 rendering is broken for %%graphBars using color names

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.3
    • Fix Version/s: 2.10.3
    • Component/s: Templates and UI
    • Labels:
      None
    • Environment:

      Tomcat 7
      Java 8
      JSPWiki v2.10.3-git-27

      Description

      Example: https://jspwiki-wiki.apache.org/Wiki.jsp?page=GraphBars


      IE11 create an javascript exception because object c010 does not implement remove() method.


      Patch
      Index: jspwiki-war/src/main/scripts/moo-extend/Color.js
      IDEA additional info:
      Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
      <+>UTF-8
      ===================================================================
      --- jspwiki-war/src/main/scripts/moo-extend/Color.js	(revision 2e3da23a887548876fa7f61303efaf1fa15fc333)
      +++ jspwiki-war/src/main/scripts/moo-extend/Color.js	(revision )
      @@ -59,7 +59,6 @@
               c0l0r.inject(document.body);
               color = ( color.test(/^[\da-f]{3,6}$/i) ?  ("#" + color) :
                        c0l0r.setStyle('color',color).getComputedStyle('color').rgbToHex() ).hexToRgb(true);  //[r,g,b]
      -        c0l0r.remove();
       
           }
           if(!color){ return null; }
      
      

        Attachments

          Activity

            People

            • Assignee:
              brushed Dirk Frederickx
              Reporter:
              epoth E.Poth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: