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

TextNodeParser fails to iterate over node array in IE11

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • Text To Speech
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: