Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zabraxias
· 12y ago · 0 comments
What if $(el).length === 0?
Comments
[–]
exizt88
12y 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).