Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-135

Trying to clone text nodes causes out of memory / stack overflow error on IE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Component/s: Node
    • Labels:
      None

      Description

      If you try to clone a text node that is using the Node interface, it will throw an out of memory / stack overflow error in IE.

      This is because the clone method will call this.outerHTML() which, if 'outerHTML' does not exist as a property of the underlying element, it will attempt to get the outerHTML by cloning the node and appending it to a div and grabbing the innerHTML of that div.

      This causes an infiniteloop that IE won't handle.

        Attachments

          Activity

            People

            Assignee:
            nathan.cavanaugh Nate Cavanaugh
            Reporter:
            nathan.cavanaugh Nate Cavanaugh
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              11 years, 10 weeks, 4 days ago

                Packages

                Version Package
                1.0.1