created by Brian LeRoux & Andrew Lunny. sparodically uncurated by David Trejo.

2014 02 22 wtf_document.all

In Chrome

document.all // HTMLAllCollection[843]
document.all[0] // <html>...</html>

typeof document.all // "undefined"!  WTF!
!{} // false. It's OK
!document.all // true! WTF!
Fork me on GitHub