Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(jqLite.cleanData): TypeError: Cannot read property 'events' of undefined #16641

Closed
@alextkachman

Description

@alextkachman

I'm submitting a ...

  • [x ] bug report

Current behavior:
TypeError happens when data is cleaned for OBJECT element. OBJECT does not support data

Expected / new behavior:
no TypeError expected

Minimal reproduction of the problem with instructions:
OBJECT element removed by because of ng-if instruction

        <div ng-if="shownGraphic.tag === 'multimedia' && shownGraphic.multimediaObject.multimediaType === 'swf'" style="width: 100%; height: 100%;">
            <object style="width: 100%; height: 100%;"><embed style="width: 100%; height: 100%;" embed-src="{{shownFigureView.url()}}" /></object>
        </div>

AngularJS version:
Angular 1.7.2
JQuery 1.10.2

Browser:
Presumably All

Anything else:
TypeError: Cannot read property 'events' of undefined
at Function.jqLite.cleanData (angular.js:2051)
at replaceWith (angular.js:10704)
at applyDirectivesToNode (angular.js:9768)
at compileNodes (angular.js:9293)
at compileNodes (angular.js:9305)
at compileNodes (angular.js:9305)
at compileNodes (angular.js:9305)
at compile (angular.js:9174)
at Object.link (angular.js:28966)
at angular.js:1364

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions