Button Elements in Internet Explorer 7

Monday, February 9th 3:58pm Matt

I learned something about button elements in IE7 today. If you don’t have both an open and a close tag, they will not close and will eat up all the rest of the content. If course it works fine, as it should, in all other browsers.

Here’s what you want to avoid:

<button type="submit" class="foo" />

And instead just do this:

<button type="submit" class="foo"></button>

Now all of the problems Internet Explorer has caused for you will be solved… until you find the next problem. It just makes me think about how they say Acid2 is not a standard and therefore is less important. Yep, just keep telling yourself that Internet Explorer team. Things are already working great, how could you possibly improve?

Submit a Comment