> function isNodeProxy(node) {
> try {
> return node instanceof Node &&
> document.body.appendChild(node) &&
> !!document.body.removeChild(node);
> } catch(x) {
> return false;
> }
> }
Excuse me, I got the logic wrong:
function isNodeProxy(node) {
try {
return node instanceof Node &&
document.body.appendChild(node) &&
!document.body.removeChild(node);
} catch(x) {
return true;
}
}
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss