Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6435

TextNodeParser fails to iterate over node array in IE11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Text To Speech
    • Labels:
      None
    • Environment:
      Internet Explorer 11

      Description

      The new TextNodeParser implementation has a faulty iteration over markup on IE11 which causes the following failure:

      Source:  TypeError: Object doesn't support property or method 'forEach'
         at fluid.textNodeParser.parse (http://localhost/source/gits/infusion-master/src/framework/core/js/TextNodeParser.js:126:13)
         at invokeInvoker (http://localhost/source/gits/infusion-master/src/framework/core/js/FluidIoC.js:1781:17)
         at Anonymous function (http://localhost/source/gits/infusion-master/tests/framework-tests/core/js/TextNodeParserTests.js:200:13)
       

      It looks like the DOM's "NodeList" type on IE11 is not actually an Array and so this method from Array.prototype is missing.
      As well as a failure in TextNodeParser's own tests, this causes widespread failures in other components which consume it, e.g. Orator, SyllabificationEnactor, etc.

        Attachments

          Activity

            People

            Assignee:
            jobara Justin Obara
            Reporter:
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: