domJSON icon indicating copy to clipboard operation
domJSON copied to clipboard

IE 11 InvalidStateError during copyJSON

Open tedfitzpatrick opened this issue 6 years ago • 3 comments

Hi, in IE 11 within the copyJSON function IE stops partway into the for ... in and reports InvalidStateError. Specifically when trying to access node[n] here:

if (opts.cull) {
                        if (node[n] || node[n] === 0 || node[n] === false) {
                            copy[n] = node[n];
                        }
                    } else {
                        copy[n] = node[n];
                    }

tedfitzpatrick avatar Aug 03 '18 22:08 tedfitzpatrick

Hmm, can you pop in a breakpoint and tell me which node exactly is causing the breaking behavior?

azaslavsky avatar Aug 07 '18 22:08 azaslavsky

I'll try to get to that ... I had to shift focus for a bit. From what I remember the node changed from unto run. You're probably interested in the type of node?

tedfitzpatrick avatar Aug 15 '18 17:08 tedfitzpatrick

Type of the node and, if its an HTML node, what kind of tag it is. Plus anything else that you think is interesting about the node and would have caused the bug in question.

azaslavsky avatar Aug 16 '18 20:08 azaslavsky