3 ms·
This check is required in both cases. el.outerHTML assumes that el is not NULL (which it could be as a result of getElementById, for example).
by exizt88 13y ago
This check is required in both cases. el.outerHTML assumes that el is not NULL (which it could be as a result of getElementById, for example).