Spot the Error 3: Calling all Sleuths!
Code Sleuth Heaven!
Here is the third Spot the Error Competition. (If you missed the first two, you can find them here and here.)
The quoted text below (a mock forum question) has quite a few coding errors in it. All you have to do is spot as many errors as you can and list them in your reply. This mock post was cunningly crafted by our own xhtmlcoder, who has a knack for posing curly conundrums and tricky traps for the unsuspecting! Some of the errors below are trickier than others (and some are just plain mean!) so there's a lot of scope for you to be a real sleuth and show off your coding expertise.
There is extra credit for explaining why something is an error. The winner will be the person who spots the most errors, or who gives the best explanation of what the errors are. (So don't be discouraged if someone beats you to it. Just give a better explanation.)
xhtmlcoder himself will be the judge of this competition, and the prize for the winner will a free SitePoint ebook.
Remember that this is just for fun, and lively debate is welcome! Good luck!
K guys, as of March 12th, xhtmlcoder is going to assess the entries so far to pick a winner, but feel free to keep the thread going. :)
So, here is the pretend post. How many errors can you spot?
Originally Posted by Spot the Error