Yesterday I found this on twitter.
04 Dec, 1995. Published in The Sentinel of Carlisle, Pennsylvania.
I wonder how it can happen that, in 23 years, nobody fixed at least the stupidest errors of that crock.
Today I almost went crazy while trying to find out where the bug in this little snippet of code hides.
With this code, the console never showed me “Top element clicked” but prints
At the top? listing-entry listing-entry
“Aaaarrrrrrrgh, I hate this nonsense!” was my first thought. And obviously
className can’t be the same as
and, sure enought I found out that the strings doesn’t match because
el.className actually was
So, my final code looks like