rishabh dev rishabh dev - 7 months ago 30
Javascript Question

reliabilty of 'isConnected' field in dom node

is a flag which is available in chrome. It shows whether domNode is part of the document.
Is it cross browser compatible?
If not is there any efficient alternative for this for other browsers?
Please provide link for any available documentation.


A quick test shows Firefox doesn't support this property. So the answer is no.

var input = document.getElementById('input');
<input type="text" id="input">