Death by ID

Tags: , , August 27, 2005 (0 comments)

As Eric Meyer posted this a couple of hours ago, and I find this funny, I'm going to post this as well. Call me a copycat at free will.

Here's a fascinating little tidbit: on some users' machines, attempts to print out Joe Clark's ALA article "Facts and Opinions About PDF Accessibility" would crash Internet Explorer. The error message mentioned a script error in line 1401: "Object doesn't support this property or method." Funny thing: we weren't doing any scripting. The error was actually occurring shdoclc.dll/preview.dlg, which is of course a piece of the operating system.

Jason did some sleuthing and traced the crash to this line of markup:

<h2 id="tags">Tags and structure</h2>

Honestly, that was it. So Jeffrey renamed the ID to read:

<h2 id="structure">Tags and structure</h2>

So far as we know, no more crashing in Explorer.

Ain't browsers a slice?

This means that IE thinks "tags" is a reserved keyword, despite the fact there is no such thing as reserved keywords in either XHTML and HTML. Brilliant Browser. :roll:.

Comments

There aren't any comments yet, but feel free to leave one regardless.

Leave a Reply