Not cool, guys.

So I sit down to program something I started last night that involves my program going to a web page and poking around the HTML code, picking up certain bits and pieces it wants. All fine and dandy.

When I got down to working on it today, turns out this portion of the site was down for maintenance. Not cool, but hey.

So I wait an hour or so, and get back to work. Good. Things seem to be working.

Then I try a bit of the code I had built last night. Umm… what? Apparently part of the maintenance the site was doing was creating HTML that was not valid. (Browsers show you malformed HTML all the time, since they’re good at working with it. The HTML parser I’m using in my code isn’t.) So the thing just breaks down.

Dude, guys. You waste my time in order to further waste my time. What is this?

(Thankfully, I found Tidy pretty quick, so it now fixes the HTML for me. It shouldn’t be my problem, but hey. Whatever.)

Notes